Write a program to exchange two variaables without temp
Answer Posted / sujith
another quick way is,
void main()
{
int a = 10, b = 5;
a ^= b ^= a ^= b;
}
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
what will be the output for the following main() { printf("hi" "hello"); }
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Is return a keyword in c?
What is the newline escape sequence?
In C programming, what command or code can be used to determine if a number of odd or even?
What header files do I need in order to define the standard library functions I use?
What is pointer & why it is used?
to find the closest pair
What was noalias and what ever happened to it?
In C language, a variable name cannot contain?
What is the use of volatile?
Is there a way to jump out of a function or functions?
What does c value mean?
What is void c?
how we can make 3d venturing graphics on outer interface