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
What does != Mean in c?
Write a program that accept anumber in words
What is the use of pointers in C?
What are pointers in C? Give an example where to illustrate their significance.
Multiply an Integer Number by 2 Without Using Multiplication Operator
Can we use any name in place of argv and argc as command line arguments?
how to create duplicate link list using C???
How can I do peek and poke in c?
What is the size of structure pointer in c?
Explain how do you determine whether to use a stream function or a low-level function?
What are the main characteristics of c language describe the structure of ac program?
How do I get an accurate error status return from system on ms-dos?
why programs in c are running with out #include
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What is the process to generate random numbers in c programming language?