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
By using C language input a date into it and if it is right?
What is meant by int main ()?
What is dynamic memory allocation?
Differentiate between new and malloc(), delete and free() ?
Whats s or c mean?
Why is c called "mother" language?
What is the argument of a function in c?
What do the functions atoi(), itoa() and gcvt() do?
c program for searching a student details among 10 student details
What is meant by 'bit masking'?
What is difference between main and void main?
What is variable and explain rules to declare variable in c?
What is %d used for?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
How can I change the size of the dynamically allocated array?