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
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is a c token and types of c tokens?
Explain what is page thrashing?
Write a program to check prime number in c programming?
why wipro wase
what is the role you expect in software industry?
What tq means in chat?
What is string in c language?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
Explain the array representation of a binary tree in C.
What is c mainly used for?
What are variables and it what way is it different from constants?
When the macros gets expanded?
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
Explain what header files do I need in order to define the standard library functions I use?