Write a program to exchange two variaables without temp
Answer Posted / srinivas
main()
{
int a=3,b=2;
a = (a+b)-(b=a);
printf("a=%d,b=%d",a,b);
}
o/p:- a=2,b=3
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does typedef struct mean?
List some of the static data structures in C?
Can you write a programmer for FACTORIAL using recursion?
What are the types of c language?
What do you mean by scope of a variable in c?
What is variable in c example?
When should I declare a function?
What is void main ()?
What is a pointer variable in c language?
How do you use a 'Local Block'?
Explain what is the difference between null and nul?
What is the difference between abs() and fabs() functions?
how to make a scientific calculater ?
What is modifier & how many types of modifiers available in c?
What is spark map function?