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
Explain what header files do I need in order to define the standard library functions I use?
What is self-referential structure in c programming?
Is c# a good language?
What is scope rule of function in c?
Can we access the array using a pointer in c language?
What is extern storage class in c?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What are the 3 types of structures?
What is a stream in c programming?
Write a function that will take in a phone number and output all possible alphabetical combinations
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
Can I initialize unions?
Why c is procedure oriented?
What are different types of pointers?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58