How to write the code of the program to swap two numbers
with in one statement?
Answer Posted / 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 |
Post New Answer View All Answers
What are valid operations on pointers?
What are c identifiers?
What is an auto keyword in c?
How do you redirect a standard stream?
How can I access an I o board directly?
Do you know the purpose of 'register' keyword?
Who developed c language and when?
Explain how can I read and write comma-delimited text?
What is null in c?
Why is c called a mid-level programming language?
Why do we use header files in c?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What is an lvalue in c?
which type of aspect you want from the student.
Who is the main contributor in designing the c language after dennis ritchie?