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
Explain the properties of union. What is the size of a union variable
Write a program for Overriding.
Write a C program to count the number of email on text
What is pragma c?
What standard functions are available to manipulate strings?
What is static memory allocation? Explain
There seem to be a few missing operators ..
Why c is called a middle level language?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
What is the difference between printf and scanf in c?
In which language linux is written?
What is a method in c?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
code for find determinent of amatrix
What are extern variables in c?