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


Please Help Members By Posting Answers For Below Questions

Why is c still so popular?

616


Explain spaghetti programming?

682


Why is event driven programming or procedural programming, better within specific scenario?

1949


What does stand for?

593


What's the total generic pointer type?

612






program to convert a integer to string in c language'

1984


Tell us bitwise shift operators?

596


Write a program to swap two numbers without using a temporary variable?

605


What are the features of c language?

619


What is masking?

634


What is the argument of a function in c?

571


How do you sort filenames in a directory?

712


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2006


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2184


Dont ansi function prototypes render lint obsolete?

602