write a program to swap Two numbers without using temp variable.
Answer Posted / joshin
main()
{
printf("enter two number");
scanf("%d%d",&a,&b);
printf("swaped result is b=%d\na=%d",b,a);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Do you know null pointer?
What is a global variable in c?
What is the ANSI C Standard?
What is realloc in c?
What is the purpose of sprintf() function?
What does main () mean in c?
How can I ensure that integer arithmetic doesnt overflow?
What is a char c?
What are the types of type qualifiers in c?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
How can you check to see whether a symbol is defined?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Differentiate Source Codes from Object Codes
What is struct node in c?
What is malloc and calloc?