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 |
What are the uses of pre-processor directives?
What is meant by recursion?
What is the best way to comment out a section of code that contains comments?
c program to arrange digits in a no in ascending and descending order
What are different types of pointers?
what is the use of ‘auto’ keyword?
If you know then define #pragma?
How can a program be made to print the line number where an error occurs?
Where does the name "C" come from, anyway?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
pgm in c to reverse string by word using array(god is love becomes love is god) (no additional array can used,space is only delimiter between words )