Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is meant by initialization and how we initialize a variable?

1011


Which is an example of a structural homology?

1274


Is c easier than java?

1006


Where static variables are stored in memory in c?

962


Write a program that accept anumber in words

1718


What is c++ used for today?

1068


When should a far pointer be used?

1074


Should I learn data structures in c or python?

989


What is methods in c?

1038


Explain what is a stream?

1045


Explain the difference between the local variable and global variable in c?

1035


If the size of int data type is two bytes, what is the range of signed int data type?

994


What is difference between static and global variable in c?

999


What are the rules for identifiers in c?

1038


How can I avoid the abort, retry, fail messages?

1099