write a program in C to swap two variables
Answer Posted / srinivas
#include <stdio.h>
int main(void)
{
int a = 2, b = 5;
a = a + b;
b = a - b;
a = a - b;
printf("%d\t%d\n", a, b);
return 0;
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Explain setjmp()?
Explain how are portions of a program disabled in demo versions?
What are actual arguments?
Are pointers integer?
What are the uses of null pointers?
What is the size of a union variable?
a program that can input number of records and can view it again the record
What are the 5 data types?
How do you list a file’s date and time?
What do you mean by scope of a variable in c?
How we can insert comments in a c program?
Is it fine to write void main () or main () in c?
Is c still used?