Find greatest of two numbers using macro
Answer Posted / banavathvishnu
#include<stdio.h>
#include<conio.h>
#define Greatest(X,Y) X>Y?X:Y
int main()
{
int x,y;
scanf("%d %d",&x,&y);
printf("%d",Greatest(x,y));
getch();
}
| Is This Answer Correct ? | 91 Yes | 10 No |
Post New Answer View All Answers
What is ## preprocessor operator in c?
What does %d do?
List the different types of c tokens?
What is union and structure in c?
how to execute a program using if else condition and the output should enter number and the number is odd only...
How can I pad a string to a known length?
Can we add pointers together?
What is the general form of function in c?
Describe static function with its usage?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What is operator precedence?
What will the preprocessor do for a program?
Can we declare a function inside a function in c?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above