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

Answer Posted / jasna.c

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,big;
printf("\nEnter the two numbers ");
scanf("%d%d",&a,&b);
big=(a>b)?a:b;
printf("\n The biggest number is %d",big);
getch();
}

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a macro?

655


Explain the advantages and disadvantages of macros.

620


Explain the difference between malloc() and calloc() function?

596


Explain the binary height balanced tree?

718


Is null valid for pointers to functions?

607






Is c dynamically typed?

665


What is formal argument?

644


What is the difference between char array and char pointer?

525


Write a program on swapping (100, 50)

634


What is console in c language?

601


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1760


What is a program?

660


write a proram to reverse the string using switch case?

2461


Want to know how to write a 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 total number of disk writes by MySQL.

1515


Without Computer networks, Computers will be half the use. Comment.

1869