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


Please Help Members By Posting Answers For Below Questions

What is assert and when would I use it?

670


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

2699


Does c have enums?

678


Why c is called top down?

718


Define circular linked list.

658






What is a stream water?

771


What is a nested loop?

750


What is methods in c?

739


Hi can anyone tell what is a start up code?

1725


Define Spanning-Tree Protocol (STP)

752


what is a function method?give example?

2019


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1544


What is static memory allocation?

716


what is event driven software and what is procedural driven software?

2116


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1997