write a c program to find biggest of 3 number without
relational operator?
Answer Posted / manjeeth
void main()
{
int a = 5;
int b = 7;
int c = 2;
int res;
res = (int)(a/b)?a:b;
res = (int)(res/c)?res:c;
printf("big num = %d",res);
}
| Is This Answer Correct ? | 132 Yes | 28 No |
Post New Answer View All Answers
What is the use of getchar() function?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
Does * p ++ increment p or what it points to?
Explain what are its uses in c programming?
What is c basic?
What are formal parameters?
Compare array data type to pointer data type
What is the purpose of sprintf() function?
What is extern c used for?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What is the correct declaration of main?
What is this infamous null pointer, anyway?
Explain what are the standard predefined macros?
What is difference between constant pointer and constant variable?
Is calloc better than malloc?