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 / mahi
The code returns error as i is undeclared see in main
int =3 and
instead of
else eale is used.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What is difference between structure and union with example?
How can you convert integers to binary or hexadecimal?
Why do we use pointer to pointer in c?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What are directives in c?
Disadvantages of C language.
Difference between goto, long jmp() and setjmp()?
differentiate built-in functions and user ā defined functions.
What is the correct declaration of main?
Not all reserved words are written in lowercase. TRUE or FALSE?
Can variables be declared anywhere in c?
What is the difference between union and anonymous union?
Explain how can you be sure that a program follows the ansi c standard?
When should a type cast not be used?