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

To find whether a number is even or odd without using any
conditional operator??

Answer Posted / rudrakshala leela phani kumar

int main()
{
int a[2][5]={"Even","Odd"};
int n;
printf("Enter Integet No:");
scanf("%d",&n);
printf("\nResult:%d",a[n%2]);
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between far and near in c?

1121


Explain what is wrong with this statement? Myname = ?robin?;

1641


What is the use of ?

1085


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

2013


Explain the array representation of a binary tree in C.

1286


Why static variable is used in c?

1088


How do you determine whether to use a stream function or a low-level function?

1193


What is the purpose of sprintf?

1207


What does stand for?

1143


What is #include stdio h?

1180


Explain what header files do I need in order to define the standard library functions I use?

1229


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1131


What are different types of operators?

1097


What is the purpose of realloc()?

1200


What is wrong with this code?

1245