How to write the code of the program to swap two numbers
with in one statement?
Answer Posted / 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 |
Post New Answer View All Answers
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
Explain spaghetti programming?
Is null always equal to 0(zero)?
Why are all header files not declared in every c program?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Why do we use null pointer?
What is struct node in c?
Explain what standard functions are available to manipulate strings?
What are the key features in c programming language?
Explain what is the use of a semicolon (;) at the end of every program statement?
Tell me the use of bit field in c language?
diff between exptected result and requirement?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.