what does the following function print?
func(int i)
{
if(i%2)return 0;
eale return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);}
Answer Posted / shrinidhi
in the question in 'func' function there is a word 'eale'.
what u mean by that? if it is 'else' then the ans is "1".
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How to declare a variable?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
How can I find out how much free space is available on disk?
How to define structures? ·
a c code by using memory allocation for add ,multiply of sprase matrixes
What is the difference between constant pointer and constant variable?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
How would you obtain the current time and difference between two times?
What is hashing in c language?
What standard functions are available to manipulate strings?
What are c preprocessors?
What is #line in c?
Explain pointer. What are function pointers in C?
Is c dynamically typed?
Can static variables be declared in a header file?