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
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What is a scope resolution operator in c?
explain what is fifo?
How is = symbol different from == symbol in c programming?
how should functions be apportioned among source files?
Why c is called a mid level programming language?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What are the rules for the identifier?
What is a macro, and explain how do you use it?
Explain what are the different data types in c?
How we can insert comments in a c program?
How do you override a defined macro?
What are the ways to a null pointer can use in c programming language?