biggest of two no's with out using if condition statement

Answer Posted / deepshree sinha

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,m;
printf('enter any two numbers");
scanf("%d %d",&a,&b);
m=(a>b)?a:b;
printf("m=%d",m);
getch();
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define string ?

679


Explain how can I manipulate strings of multibyte characters?

792


How can I determine whether a machines byte order is big-endian or little-endian?

632


Why is c called a mid-level programming language?

737


What is the explanation for modular programming?

696






How do you write a program which produces its own source code as output?

620


What is sizeof array?

621


Write a program to check whether a number is prime or not using c?

586


Explain the difference between exit() and _exit() function?

645


What is the process of writing the null pointer?

613


What is the difference between declaring a variable and defining a variable?

731


What is boolean in c?

623


Why c is called free form language?

581


How many loops are there in c?

590


Where are the auto variables stored?

638