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
Explain about the constants which help in debugging?
What are the 4 types of programming language?
How can you tell whether a program was compiled using c versus c++?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What are the three constants used in c?
Explain how can I write functions that take a variable number of arguments?
What's the total generic pointer type?
Does c have enums?
What is typeof in c?
What is difference between array and pointer in c?
What does %p mean c?
Do you know what are bitwise shift operators in c programming?
Differentiate between new and malloc(), delete and free() ?
What is meant by inheritance?
What is linear search?