how to swap two integers 1 and 32767 without using third
variable
Answer Posted / susmita dutta chowdhury
b=(a+b)-(a=b);
printf("%d %d ",a,b);
explanation:-
b=(1+32767)-(a=32767)
b=32768-32767
b=1
a=32767
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What are the usage of pointer in c?
Are enumerations really portable?
Define C in your own Language.
What is an lvalue in c?
What is union and structure in c?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
When c language was developed?
what are # pragma staments?
Is null a keyword in c?
Explain how do you determine a file’s attributes?
Apart from dennis ritchie who the other person who contributed in design of c language.
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
Tell me when would you use a pointer to a function?
Can we increase size of array in c?