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

Answer Posted / nikhil godani

a=a+b;
b=a-b;
a=a-b;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of functions are there in c?

578


Difference between goto, long jmp() and setjmp()?

697


while initialization of array why we use a[][2] why not a[2][]...?

1857


Are pointers integers in c?

602


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

770






Write a C program to count the number of email on text

1411


write a progrmm in c language take user interface generate table using for loop?

1567


Write a program to use switch statement.

652


Explain c preprocessor?

673


Can we use visual studio for c?

540


What are the keywords in c?

637


Can we declare function inside main?

560


How does struct work in c?

602


Explain how can you avoid including a header more than once?

591


How does selection sort work in c?

611