wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / vijayakumar kanagasabai
main()
{
int a=4;b=6;
printf("Before swapping: a=%d, b=%d",a,b);
a=a+b;
b=a-b;
a=a-b;
printf("After swapping: a=%d, b=%d",a,b);
}
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is indirection in c?
What language is lisp written in?
Write a c program to demonstrate character and string constants?
What is the difference between far and near ?
What is pointers in c with example?
Why we use conio h in c?
how to find binary of number?
What is difference between %d and %i in c?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
How to establish connection with oracle database software from c language?
What do you mean by dynamic memory allocation in c? What functions are used?
What is main function in c?
how could explain about job profile
What is the difference between text files and binary files?