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

write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc)

Answer Posted / vignesh1988i

sorry , just change printf() as.... printf("0 - even number \t 1 - odd number \n ");

thank u

Is This Answer Correct ?    12 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum no. of arguments that can be given in a command line in C.?

1089


What are the difference between a free-standing and a hosted environment?

1226


Do you know pointer in c?

996


What are the storage classes in C?

1075


What is the difference between near, far and huge pointers?

1035


What are pragmas and what are they good for?

936


Differentiate between the expression “++a” and “a++”?

1206


Write a program to reverse a given number in c?

987


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2506


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1050


What is the translation phases used in c language?

1063


What are the c keywords?

1148


number of times a digit is present in a number

1989


What is meant by initialization and how we initialize a variable?

1006


What is the difference between struct and typedef struct in c?

1087