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 / mohd parvez 09311349697

#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("Enter a number:");
scanf("%d",&num);
num%2&&printf("Number is ODD")||printf("Number is EVEN");
getch();
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

int i=10; printf("%d %d %d", i, i=20, i);

1549


What is c mainly used for?

1000


Explain how can a program be made to print the line number where an error occurs?

1148


Explain what is meant by 'bit masking'?

1120


Write the syntax and purpose of a switch statement in C.

1038


How can I swap two values without using a temporary?

1060


what value is returned to operating system after program execution?

2062


If null and 0 are equivalent as null pointer constants, which should I use?

1120


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2318


Can I initialize unions?

987


Can include files be nested?

1059


Can you define which header file to include at compile time?

982


What does double pointer mean in c?

1076


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

2257


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1016