biggest of two no's with out using if condition statement
Answer Posted / ansh
Use tenary operator..
c=a<b?b:a;
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
How can I change the size of the dynamically allocated array?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Can we declare function inside main?
What is the use of a static variable in c?
What is scope of variable in c?
What are the types of type specifiers?
What is meant by high-order and low-order bytes?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Explain the meaning of keyword 'extern' in a function declaration.
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.
What is the explanation for prototype function in c?
What do you understand by normalization of pointers?
Explain null pointer.
Explain the use of 'auto' keyword in c programming?