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

void main()
{
int n;
printf("enter n:");
scanf("%d",&n);
if(n%2==0)
printf( "even");
else
printf("odd");
}

Is This Answer Correct ?    15 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the heap in c?

1084


Explain how can a program be made to print the name of a source file where an error occurs?

1197


What should malloc() do?

1172


What is the difference between ‘g’ and “g” in C?

4011


How will you delete a node in DLL?

1294


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2429


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1305


Explain how do you sort filenames in a directory?

1042


Is c compiled or interpreted?

1194


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1437


Is flag a keyword in c?

1154


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1402


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1145


In C language what is a 'dangling pointer'?

1160


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1532