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 / manju
The code returns error as i is undeclared see in main int
=3 and instead of else eale is used.
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
Can a pointer be volatile in c?
What is pragma in c?
What is volatile variable in c with example?
Is c a great language, or what?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Explain what is the difference between far and near ?
What is %lu in c?
What is the newline escape sequence?
Why is void main used?
What is function in c with example?
What is gets() function?
How can I make it pause before closing the program output window?
What are different storage class specifiers in c?
What is the maximum no. of arguments that can be given in a command line in C.?
Can we declare variables anywhere in c?