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

write a c program to find biggest of 3 number without
relational operator?

Answer Posted / raheman(papi)khan

#include<stdio.h>
void main()
{
int a,b,c;
printf("enter the value of a b and c");
scanf("%d%d%d",%a,&b,&c);
int max=a;
if(b>max)
max=b;
if(c>max)
max=c;
printf("%d",max);
else
printf("equal");
}

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong with this declaration?

1109


What is array of pointers to string?

1095


Are pointers integer?

1019


How can I open a file so that other programs can update it at the same time?

1187


Explain pointers in c programming?

1121


Give the rules for variable declaration?

1182


Can a file other than a .h file be included with #include?

1166


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

2178


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1233


What are the types of pointers in c?

1029


Explain union. What are its advantages?

1081


An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

1091


Explain the difference between malloc() and calloc() function?

1058


how can I convert a string to a number?

1084


What is a pointer on a pointer in c programming language?

1146