Find greatest of two numbers using macro
Answer Posted / sourav ray
#include<stdio.h>
#include<conio.h>
#define big(a,b) (a>b)?a:b
void main()
{int x,y;
clrscr();
printf("enter the valus of x and y:\n");
scanf("%d%d",&x,&y);
printf("the biggest value is",big(x,y)");
getch();
}
Is This Answer Correct ? | 16 Yes | 6 No |
Post New Answer View All Answers
What is structure data type in c?
What does return 1 means in c?
Are pointers integers in c?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Do variables need to be initialized?
What is sizeof c?
What is sizeof int in c?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
How will you find a duplicate number in a array without negating the nos ?
pierrot's divisor program using c or c++ code
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Explain what are the advantages and disadvantages of a heap?
How can a number be converted to a string?
define string ?