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 a pointer and how it is initialized?

1153


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.. :(

2250


Add Two Numbers Without Using the Addition Operator

819


Are there constructors in c?

1005


Explain continue keyword in c

1017


why return type of main is not necessary in linux

2104


What is difference between array and pointer in c?

1082


Explain how do you print only part of a string?

1212


What are reserved words?

1108


What do you mean by c what are the main characteristics of c language?

1031


Can we access the array using a pointer in c language?

1044


What is the heap?

1216


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?

1230


Which is the memory area not included in C program? give the reason

1942


What are predefined functions in c?

1090