how to swap two integers 1 and 32767 without using third
variable
Answer Posted / vidhubala-j
int a=1
int b=32767
a^=b^=a
printf("%d %d",a,b);
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is the scope of global variable in c?
Why void main is used in c?
Why is c known as a mother language?
When is a void pointer used?
What is sorting in c plus plus?
Explain what is the benefit of using enum to declare a constant?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
What is data type long in c?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Write a program on swapping (100, 50)
How are Structure passing and returning implemented by the complier?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is wild pointer in c?
What are logical errors and how does it differ from syntax errors?
Explain null pointer.