Write a macro for swapping integers
Answers were Sorted based on User's Feedback
Answer / deepak
# define swap(a,b) a = a + b; b = a - b; a = a - b;
| Is This Answer Correct ? | 50 Yes | 8 No |
what is the use of template classes in c++
what is overloading and overriding?
what is the difference between <stdio.h>and "stdio.h"?
What is difference between multiple inheritance and multilevel inheritance?
Why oops is important?
What is the real life example of polymorphism?
what is the difference between a package and a software?
#include <iostream> using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }
write string class as your own class in java without using any built-in function
Is html an oop?
oops concept is used for?
what are the ways in which a constructors can be called?