write a program to swap Two numbers without using temp variable.
Answer Posted / naresh
main()
{
int a,b,c;
printf("enter a,b value");
scanf("%d%%d",&a,&b);
c=a^=b^=a^=b;
printf("%d",c);
}
| Is This Answer Correct ? | 67 Yes | 150 No |
Post New Answer View All Answers
What is zero based addressing?
Describe wild pointers in c?
Explain why C language is procedural?
What is the auto keyword good for?
What is the use of bit field?
What is getch() function?
What is meant by preprocessor in c?
How to write a multi-statement macro?
Is array name a pointer?
What are the modifiers available in c programming language?
What is sizeof c?
Explain what is wrong with this statement? Myname = ?robin?;
What are derived data types in c?
What is fflush() function?
How to establish connection with oracle database software from c language?