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

Answer Posted / nikhil gupta

# 2 a=a+b;
b=a-b;
a=a-b;

Is This Answer Correct ?    23 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

4. main() { int c=- -2; printf("c=%d",c); }

1547


Can you please explain the difference between syntax vs logical error?

893


what is the format specifier for printing a pointer value?

765


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

734


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7747






4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

1942


List out few of the applications that make use of Multilinked Structures?

1690


Difference between linking and loading?

865


What is wild pointer in c?

791


Why is it important to memset a variable, immediately after allocating memory to it ?

1753


Subtract Two Number Without Using Subtraction Operator

552


diff between exptected result and requirement?

1785


What is context in c?

713


What is strcmp in c?

743


What is a structural principle?

823