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


Please Help Members By Posting Answers For Below Questions

Where are some collections of useful code fragments and examples?

815


What is the difference between near, far and huge pointers?

704


What are multidimensional arrays?

753


What is far pointer in c?

906


Explain what is operator promotion?

721






Why doesnt that code work?

685


Is c compiled or interpreted?

774


Explain how do you search data in a data file using random access method?

779


What is the use of a ‘’ character?

688


Write a code to generate divisors of an integer?

722


Explain spaghetti programming?

794


Is that possible to add pointers to each other?

999


What is 02d in c?

729


What is structure in c explain with example?

739


How do you generate random numbers in C?

772