#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
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
explain what are pointers?
What is the role of this pointer?
Explain what is the best way to comment out a section of code that contains comments?
How to declare a variable?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What are the 4 types of functions?
What are the preprocessor categories?
find the sum of two matrices and WAP for it.
What are types of preprocessor in c?
How do shell structures work?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
What does %p mean c?
Is there a way to jump out of a function or functions?
Explain how can you tell whether a program was compiled using c versus c++?