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

THE LAST two answers posted by two folks are correct but the
declarations have been made wrong...... we cant make use of
1D array here , if so only 'e' or 'o' only will get
printed.... but that is not our aim... so correct
declaration is using a 2D array.....
char a[][6]={{"even"},{"odd"}};

and also it is not the must to make use of array of pointers
concept...........

thank u

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does != Mean in c?

1060


Write a program that accept anumber in words

1766


What is the use of pointers in C?

1087


What are pointers in C? Give an example where to illustrate their significance.

1237


Multiply an Integer Number by 2 Without Using Multiplication Operator

772


Can we use any name in place of argv and argc as command line arguments?

1080


how to create duplicate link list using C???

2564


How can I do peek and poke in c?

1083


What is the size of structure pointer in c?

1071


Explain how do you determine whether to use a stream function or a low-level function?

1098


What are the main characteristics of c language describe the structure of ac program?

1218


How do I get an accurate error status return from system on ms-dos?

1134


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1776


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1357


What is the process to generate random numbers in c programming language?

1186