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
Explain the difference between call by value and call by reference in c language?
hi any body pls give me company name interview conduct "c" language only
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
What do you mean by Recursion Function?
What is #include stdio h and #include conio h?
What are the advantages of Macro over function?
Write a program to reverse a given number in c language?
Is c easier than java?
What is putchar() function?
How do I use strcmp?
Explain the use of fflush() function?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
If fflush wont work, what can I use to flush input?
Write a program to print factorial of given number using recursion?
Can the curly brackets { } be used to enclose a single line of code?