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 / raj sarswat

void main()
{
int a,b;
printf("enter the value of a and b");
scanf("%d,%d",&a,&b);
a>b?printf("%d",&a):printf("%d",&b);
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c identifiers?

1087


How do you determine the length of a string value that was stored in a variable?

1119


What is the function of this pointer?

1328


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1087


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2809


Why are algorithms important in c program?

1117


What are the two types of structure?

1083


please give me some tips for the placement in the TCS.

2108


When should I declare a function?

1118


Do you have any idea how to compare array with pointer in c?

1047


What is a constant?

1056


What are the different properties of variable number of arguments?

1152


How can I insert or delete a line (or record) in the middle of a file?

1014


What is the difference between formatted&unformatted i/o functions?

1052


find out largest elemant of diagonalmatrix

2244