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

#include<stdio.h>
#include<conio.h>
void main()
{
int x;
if(x%2==0)
printf("even");
else
printf("odd");
getch();
}

Is This Answer Correct ?    4 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why header files are used?

1118


How can you be sure that a program follows the ANSI C standard?

1608


How is a pointer variable declared?

1092


Explain what is operator promotion?

1086


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

5475


What does p mean in physics?

1042


Tell us something about keyword 'auto'.

1074


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1013


What is a pragma?

1126


what do the 'c' and 'v' in argc and argv stand for?

1172


What are register variables? What are the advantage of using register variables?

1191


What does node * mean?

1217


Give differences between - new and malloc() , delete and free() ?

1099


Is c high or low level?

1007


Why c is called procedure oriented language?

1045