#include<stdio.h>
#include<conio.h>
# define swap(a,b) temp=a; a=b; b=temp;
void main( )
{
int i, j, temp;
i=5;
j=10;
temp=0;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);
}
Answer Posted / ashishrajvanshi01
On compiling i got ans 10, 0, 0. I did not understand the concept. Please expalin this to me.
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
What is the auto keyword good for?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is ctrl c called?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What is an endless loop?
Explain the difference between null pointer and void pointer.
What are the features of c language?
What is the function of multilevel pointer in c?
What are the uses of a pointer?
What is int main () in c?
When should the register modifier be used? Does it really help?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Explain what does it mean when a pointer is used in an if statement?
What is %lu in c?