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 is a null string in c?
What was noalias and what ever happened to it?
Can you explain the four storage classes in C?
What is unsigned int in c?
Describe how arrays can be passed to a user defined function
Is c++ based on c?
Tell me what is null pointer in c?
Differentiate fundamental data types and derived data types in C.
What is c method?
What is ctrl c called?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What are the characteristics of arrays in c?
How are Structure passing and returning implemented by the complier?
Why shouldn’t I start variable names with underscores?
What are the advantages and disadvantages of c language?