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
Write a code to generate a series where the next element is the sum of last k terms.
can we have joblib in a proc ?
Write a program with dynamically allocation of variable.
What is array of structure in c?
What are the advantages and disadvantages of pointers?
How we can insert comments in a c program?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
what is uses of .net
How are Structure passing and returning implemented by the complier?
Explain void pointer?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
Hi can anyone tell what is a start up code?
what is the role you expect in software industry?
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 .
What is the difference between int main and void main?