write a program to swap Two numbers without using temp variable.
Answer Posted / riyaz
int a, b;
printf("a=");
scanf("%d",&a);
printf("b=");
scanf("%d",&b);
printf("a = %d\nb = %d\n",b,a);
return 0;
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is local and global variable in c?
When should a type cast not be used?
What is the difference between test design and test case design?
How can you restore a redirected standard stream?
What is the difference between the expression “++a” and “a++”?
What is a good way to implement complex numbers in c?
What are the 4 data types?
What is the general form of #line preprocessor?
How can you access memory located at a certain address?
How can you allocate arrays or structures bigger than 64K?
Differentiate between Macro and ordinary definition.
What is typedef example?
What are the application of c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Define the scope of static variables.