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

How many types of functions are there in c?

1148


What is difference between union All statement and Union?

1113


Explain what are the different file extensions involved when programming in c?

1114


What is a program flowchart and how does it help in writing a program?

1145


What is c definition?

1280


What does double pointer mean in c?

1188


What is return type in c?

1141


Explain why c is faster than c++?

1075


Where are local variables stored in c?

1048


Are the variables argc and argv are always local to main?

1026


can we change the default calling convention in c if yes than how.........?

2538


Write a function that will take in a phone number and output all possible alphabetical combinations

1054


Do character constants represent numerical values?

1350


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

2027


Explain the properties of union. What is the size of a union variable

1190