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 optimization in c?
Explain modulus operator.
Is c high or low level?
What is malloc and calloc?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is the difference between c and python?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What is sizeof in c?
What is a list in c?
What are the back slash character constants or escape sequence charactersavailable in c?
Can you please explain the difference between syntax vs logical error?
Does c have function or method?
What are global variables and how do you declare them?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile