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 does typedef struct mean?
How can I do graphics in c?
Explain what is wrong in this statement?
What is echo in c programming?
What is structure padding in c?
Write a program to print numbers from 1 to 100 without using loop in c?
What is static memory allocation? Explain
please send me the code for multiplying sparse matrix using c
Why doesnt the call scanf work?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
Write a program to generate random numbers in c?
what is recursion in C
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?