How to write the code of the program to swap two numbers
with in one statement?
Answers were Sorted based on User's Feedback
Answer / rajitha
#include<stdio.h>
main()
{
int a=3,b=4;
b=a+b-(a=b);
printf("%d",a);
printf("%d",b);
}
| Is This Answer Correct ? | 19 Yes | 4 No |
Answer / manoj kumar shukla
main()
{
int a=4,b=3;
a=a+b-(b=a);
printf("%d",a);
printf("%d",b);
}
| Is This Answer Correct ? | 6 Yes | 2 No |
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");
What is difference between constant pointer and constant variable?
what is uses of .net
Can you write the function prototype, definition and mention the other requirements.
What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"?
What is data structure in c language?
What is a dynamic array in c?
What language is lisp written in?
What is "Duff's Device"?
What will the preprocessor do for a program?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
How can I trap or ignore keyboard interrupts like control-c?