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
Where are some collections of useful code fragments and examples?
What is the difference between near, far and huge pointers?
What are multidimensional arrays?
What is far pointer in c?
Explain what is operator promotion?
Why doesnt that code work?
Is c compiled or interpreted?
Explain how do you search data in a data file using random access method?
What is the use of a ‘ ’ character?
Write a code to generate divisors of an integer?
Explain spaghetti programming?
Is that possible to add pointers to each other?
What is 02d in c?
What is structure in c explain with example?
How do you generate random numbers in C?