5
Reply

Add Two Values without using '+' Operator. ?

Akash Varshney

Akash Varshney

9y
2.6k
2
Reply

    public int Add(int a,int b) {return (a-(-b); }

    Sum - The method can be used on objects that implement IEnumerable with a type of decimal, double, int or long. using LINQ:public void SumNum() {int[] array1 = {1,2}; int sum = array1.Sum();}

    int a=5; int b=6;for(int I=0;i

    result = item1 | item2; //for integer types

    by using operator overloading