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 / vignesh1988i

#include<stdio.h>
#include<conio.h>
void main()
{
int a=90 , b=-89;
(a>b)?printf("a is larger") : printf(" b is larger ");
getch();
}

thank u

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c language in simple words?

1013


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

2262


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2079


What is difference between structure and union with example?

989


What are the different types of objects used in c?

972


How to implement a packet in C

2832


What is a nested loop?

1072


Can the “if” function be used in comparing strings?

982


Why c is a mother language?

965


Why we not create function inside function.

2142


What are variables c?

998


Tell me what is null pointer in c?

1013


Are pointers integers in c?

1029


Write a program to identify if a given binary tree is balanced or not.

1091


Is multithreading possible in c?

950