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
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What is the general form of #line preprocessor?
What does %2f mean in c?
Why use int main instead of void main?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Place the #include statement must be written in the program?
If null and 0 are equivalent as null pointer constants, which should I use?
What's the right way to use errno?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
can any one tel me wt is the question pattern for NIC exam
Tell me can the size of an array be declared at runtime?
What is %g in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Explain 'far' and 'near' pointers in c.