Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a C program to find the smallest of three integers,
without using any of the comparision operators.

Answer Posted / srinivas

#include <stdio.h>

int main(void)
{
int a = 10, b = 2, c = 30, result;

result = a < b ? ((a < c) ? a: c) : ((b < c) ? b : c);
printf("%d\n",result);
return 0;


}

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find a missed value, if you want to store 100 values in a 99 sized array?

1415


What is a c token and types of c tokens?

1069


Explain what is page thrashing?

1101


Write a program to check prime number in c programming?

1099


why wipro wase

2313


what is the role you expect in software industry?

2154


What tq means in chat?

1126


What is string in c language?

1161


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

1110


Explain the array representation of a binary tree in C.

1234


What is c mainly used for?

1069


What are variables and it what way is it different from constants?

1244


When the macros gets expanded?

1427


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1953


Explain what header files do I need in order to define the standard library functions I use?

1173