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

int oddeven(int n)
{
if(n&1)
return 1; //odd

else
return 0; //even
}

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array of structure in c programming?

1295


What is the difference between text files and binary files?

1357


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2701


How can I pad a string to a known length?

1040


Are there namespaces in c?

1139


Can one function call another?

1120


can we have joblib in a proc ?

2314


Why double pointer is used in c?

1048


Who developed c language and when?

1074


How do you use a 'Local Block'?

1179


how to write optimum code to divide a 50 digit number with a 25 digit number??

3273


Explain c preprocessor?

1122


What is a pointer and how it is initialized?

1169


what type of questions arrive in interview over c programming?

2035


What are the uses of null pointers?

1132