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

Answer Posted / dinesh

b is the smallest number of above three values

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

619


Explain what are the advantages and disadvantages of a heap?

599


write a program in c language to print your bio-data on the screen by using functions.

6255


What is array in c with example?

619


Explain built-in function?

596






#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5217


What is selection sort in c?

613


string reverse using recursion

1817


What is the use of typedef in structure in c?

549


Stimulate calculator using Switch-case-default statement for two numbers

2452


What are the 3 types of structures?

574


Is there any demerits of using pointer?

634


Can we initialize extern variable in c?

639


What is gets() function?

675


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.

3694