how to swap two integers 1 and 32767 without using third
variable
Answer Posted / riya ganguly
int a=1,b=32767;
a=a+b;
b=a-b;
a=a-b;
printf("a=%d,b=%d",a,b);
| Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
What is the benefit of using const for declaring constants?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
what are the facialities provided by you after the selection of the student.
What is file in c preprocessor?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
How do we declare variables in c?
Describe the difference between = and == symbols in c programming?
Do you know the purpose of 'register' keyword?
Where local variables are stored in c?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
In C language, a variable name cannot contain?
How do you write a program which produces its own source code as output?
How to establish connection with oracle database software from c language?
What is the sizeof () operator?
What are register variables in c?