Interviews - C# Corner

Akash Varshney
Add Two Values without using '+' Operator. ?
By Akash Varshney in C# onSep 18 2015
  • Akash Varshney
    Sep, 2015 18

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

    • 4
  • Shweta Sawant
    Dec, 2016 14

    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();}

    • 3
  • Sankar Sai
    Feb, 2016 17

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

    • 3
  • Anas PK
    Jan, 2017 16

    result = item1 | item2; //for integer types

    • 0
  • Sunil Babu
    Apr, 2016 2

    by using operator overloading

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS