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 gets() function?
What do you mean by a local block?
Which is more efficient, a switch statement or an if else chain?
What are the 4 types of unions?
Why cant I open a file by its explicit path?
write a program to generate address labels using structures?
How many data structures are there in c?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What does nil mean in c?
Can we access the array using a pointer in c language?
Why calloc is better than malloc?
Explain what are its uses in c programming?
How do I round numbers?
How important is structure in life?
How does normalization of huge pointer works?