swap two integer variables without using a third temporary
variable?

Answer Posted / abhinav lohar

t=a;
a=b;
b=t;

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages and disadvantages of a heap?

680


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1837


What is structure packing in c?

585


What are the types of i/o functions?

651


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1145






What is the difference between int main and void main?

552


Do pointers need to be initialized?

537


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1763


What is page thrashing?

626


Why do we need volatile in c?

708


Can one function call another?

597


What is modifier & how many types of modifiers available in c?

578


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

2217


What is c method?

508


What is realloc in c?

558