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 are 'near' and 'far' pointers?
The statement, int(*x[]) () what does in indicate?
What is string concatenation in c?
What are pointers? What are stacks and queues?
What are Macros? What are its advantages and disadvantages?
What is a constant and types of constants in c?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
Can stdout be forced to print somewhere other than the screen?
What is the meaning of ?
What are the advantages of using Unions?
What are the 5 organizational structures?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
How do I convert a string to all upper or lower case?
What does the c preprocessor do?
Define recursion in c.