Tag: programming languages

Questions Related to programming languages

  1. Multiple Inheritance and Overloading

  2. Operator Overloading and Overriding

  3. Multiple Inheritance and Operator Overloading

  4. Pointers and Single Inheritance


Correct Option: C

What will be the output of the following program : #define Swap if (a != b) { \ temp=a; \ a = b; \ b = temp; \ //Swapping Done } void main() { int a=10,b=5,temp; Swap; printf("a=%d a=%d",a,b); }

  1. Compile-Time Error

  2. a=5 b=10

  3. a=10 b=5

  4. None of the above


Correct Option: A