write a program to swap Two numbers without using temp variable.

Answer Posted / nagakishorebabu

a=a+b;
b=a-b;
a=a-b;
printf("a %dand b %dis :",a,b);

Is This Answer Correct ?    181 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

670


How macro execution is faster than function ?

669


What is wrong with this statement? Myname = 'robin';

824


Can you please explain the difference between malloc() and calloc() function?

622


What is c token?

612






What is the use of f in c?

560


Why we use stdio h in c?

585


Why is not a pointer null after calling free?

599


What does sizeof return c?

608


Write a program to implement queue.

667


What are global variables and explain how do you declare them?

581


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

760


What is the right type to use for boolean values in c? Is there a standard type?

567


Explain Function Pointer?

682


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

730