without using control structures and control structures find the max and min of given 2 nos
Answer Posted / chavidi
by using ternary operators we can find the max number among
2 numbers
a>b?a:b;
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How many bytes is a struct in c?
What are multidimensional arrays?
Write a c program to demonstrate character and string constants?
Can include files be nested?
What are logical errors and how does it differ from syntax errors?
What is 'bus error'?
What is declaration and definition in c?
How do you generate random numbers in C?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
What are comments and how do you insert it in a C program?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
What is a char in c?
how should functions be apportioned among source files?