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


Please Help Members By Posting Answers For Below Questions

What is floating point constants?

694


Can i use “int” data type to store the value 32768? Why?

757


what is the difference between class and unio?

1863


Which of these functions is safer to use : fgets(), gets()? Why?

636


What is pointers in c with example?

584






How does normalization of huge pointer works?

642


What is a node in c?

551


Why cant I open a file by its explicit path?

593


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

635


Write a program to show the change in position of a cursor using c

584


Are pointers integer?

552


Explain the use of function toupper() with and example code?

655


How do you search data in a data file using random access method?

835


Explain what is the difference between a free-standing and a hosted environment?

636


What does do in c?

611