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

find a number whether it is even or odd without using any
control structures and relational operators?

Answer Posted / om

void odd_even_check(int z)
{
(z&1)?printf("\nodd\n"):printf("\neven\n");
}

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #include stdio h?

1059


What is structure and union in c?

1069


hi any body pls give me company name interview conduct "c" language only

2231


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.

2749


What is the significance of c program algorithms?

1095


What is a nested loop?

1070


Differentiate between a for loop and a while loop? What are it uses?

1131


Write a progarm to find the length of string using switch case?

2025


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

989


Why void is used in c?

948


What is c definition?

1194


What are the preprocessor categories?

999


what do u mean by Direct access files? then can u explain about Direct Access Files?

2029


Explain can static variables be declared in a header file?

1103


formula to convert 2500mmh2o into m3/hr

941