#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


Please Help Members By Posting Answers For Below Questions

Do pointers need to be initialized?

550


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15027


What is the scope of static variables in c language?

620


Why is c so important?

586


What is LINKED LIST? How can you access the last element in a linked list?

621






using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1302


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2193


Explain what is gets() function?

616


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

711


Here is a good puzzle: how do you write a program which produces its own source code as output?

587


number of times a digit is present in a number

1533


what is a constant pointer in C

659


Which programming language is best for getting job 2020?

598


Ow can I insert or delete a line (or record) in the middle of a file?

564


How will you divide two numbers in a MACRO?

690