Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / vara
#include<stdio.h>
void main()
{
int a,b;
printf("enter a and b values");
scanf("%d%d",&a,&b);
a>b?printf("%d",a):printf("%d",b);
}
| Is This Answer Correct ? | 89 Yes | 11 No |
Post New Answer View All Answers
What are variables c?
Why is it that not all header files are declared in every C program?
What is a structure and why it is used?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is a pointer variable in c language?
Explain how do you list a file’s date and time?
What is character set?
Why is event driven programming or procedural programming, better within specific scenario?
How are pointers declared in c?
What are the salient features of c languages?
How can I get random integers in a certain range?
In which header file is the null macro defined?
What is pivot in c?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)