write a program to swap Two numbers without using temp variable.
Answer Posted / nagakishorebabu
a=a+b;
b=a-b;
a=a-b;
printf("a %dand b %dis :",a,b);
| Is This Answer Correct ? | 181 Yes | 43 No |
Post New Answer View All Answers
where are auto variables stored? What are the characteristics of an auto variable?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
List some basic data types in c?
What is the difference between NULL and NUL?
What are the scope of static variables?
What is wild pointer in c?
What are the different file extensions involved when programming in C?
What are the salient features of c languages?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Why is structure padding done in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
Which is the memory area not included in C program? give the reason
What is the general form of function in c?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above