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 / mukul garg

main()
{
int num;
clrscr();
printf("enter the number");
scanf("%d",&num);
(num%2==0)?printf("even num"):printf("odd num");
}

Is This Answer Correct ?    13 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do array subscripts always start with zero?

1253


Explain threaded binary trees?

1118


What is dynamic dispatch in c++?

1015


Differentiate between null and void pointers.

1130


why we wont use '&' sing in aceesing the string using scanf

2325


How does selection sort work in c?

998


Write a code to remove duplicates in a string.

990


What are type modifiers in c?

1003


What is this pointer in c plus plus?

1039


What are the different types of pointers used in c language?

1009


Can you please explain the difference between syntax vs logical error?

1142


What is structure in c explain with example?

1111


Is c compiled or interpreted?

1141


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1216


Why c is procedure oriented?

1010