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

#include<stdio.h>
#include<conio.h>
main()
{
int n;
char *p[]={"Even","odd"};
clrscr();
printf("Enter the number");
scanf("%d",&n);
n=n%2;
printf("The value is %s",p[n]);
getch();

}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of enum in bytes?

1134


List some of the static data structures in C?

1240


Difference between linking and loading?

1155


What are multidimensional arrays?

1170


hi send me sample aptitude papers of cts?

2218


What is maximum size of array in c?

1084


Explain two-dimensional array.

1129


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

2592


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

1257


What are header files in c?

1120


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2302


Explain the difference between malloc() and calloc() function?

1099


What are the two forms of #include directive?

1218


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1421


What is the difference between variable declaration and variable definition in c?

1103