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

Explain about the constants which help in debugging?

1046


What are the 4 types of programming language?

738


How can you tell whether a program was compiled using c versus c++?

800


Here is a good puzzle: how do you write a program which produces its own source code as output?

805


What are the three constants used in c?

709






Explain how can I write functions that take a variable number of arguments?

772


What's the total generic pointer type?

777


Does c have enums?

757


What is typeof in c?

741


What is difference between array and pointer in c?

713


What does %p mean c?

793


Do you know what are bitwise shift operators in c programming?

769


Differentiate between new and malloc(), delete and free() ?

862


What is meant by inheritance?

816


What is linear search?

885