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

Explain enumerated types in c language?

595


What does c mean in basketball?

552


What is malloc return c?

588


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2026


Explain the properties of union.

599






Can main () be called recursively?

619


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1836


Explain what is a static function?

624


What is file in c language?

566


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2584


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1876


Can we declare function inside main?

553


What is #define size in c?

634


What is function prototype?

601


Why is c still so popular?

602