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
Explain the properties of union. What is the size of a union variable
what do u mean by Direct access files? then can u explain about Direct Access Files?
Define Array of pointers.
What is a dynamic array in c?
If the size of int data type is two bytes, what is the range of signed int data type?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
How can a number be converted to a string?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Why is c platform dependent?
Where are some collections of useful code fragments and examples?
How can I delete a file?
Explain Function Pointer?
How to compare array with pointer in c?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
Why doesnt the call scanf work?