Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / amit
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
(a>b)?printf("a is larger") : printf(" b is larger ");
getch();
}
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
Do character constants represent numerical values?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Explain what is the difference between a free-standing and a hosted environment?
What are volatile variables in c?
Is multithreading possible in c?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What is meant by preprocessor in c?
What is calloc() function?
How can you find the day of the week given the date?
By using C language input a date into it and if it is right?
What does it mean when the linker says that _end is undefined?
What is the significance of scope resolution operator?
number of times a digit is present in a number
What is a constant?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3