#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 / shweta
#include<stdio.h>
#define fun(a) #a#a#a
void main(){
printf("%u",fun(5+9));
}
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Do pointers need to be initialized?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is the scope of static variables in c language?
Why is c so important?
What is LINKED LIST? How can you access the last element in a linked list?
using only #include
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
Explain what is gets() function?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
Here is a good puzzle: how do you write a program which produces its own source code as output?
number of times a digit is present in a number
what is a constant pointer in C
Which programming language is best for getting job 2020?
Ow can I insert or delete a line (or record) in the middle of a file?
How will you divide two numbers in a MACRO?