Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / kristian vitozev
#include <stdio.h>
int main(void)
{
int a = 7, b = 25;
a>b ? printf("%d [a]",a) : printf("%d [b]", b);
return 0;
}
| Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
What is a pointer and how it is initialized?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
Add Two Numbers Without Using the Addition Operator
Are there constructors in c?
Explain continue keyword in c
why return type of main is not necessary in linux
What is difference between array and pointer in c?
Explain how do you print only part of a string?
What are reserved words?
What do you mean by c what are the main characteristics of c language?
Can we access the array using a pointer in c language?
What is the heap?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
Which is the memory area not included in C program? give the reason
What are predefined functions in c?