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

A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1252


What is difference between structure and union with example?

596


How can you convert integers to binary or hexadecimal?

616


Why do we use pointer to pointer in c?

599


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜nā€™ element.

1582






What are directives in c?

548


Disadvantages of C language.

661


Difference between goto, long jmp() and setjmp()?

708


differentiate built-in functions and user ā€“ defined functions.

628


What is the correct declaration of main?

679


Not all reserved words are written in lowercase. TRUE or FALSE?

719


Can variables be declared anywhere in c?

624


What is the difference between union and anonymous union?

835


Explain how can you be sure that a program follows the ansi c standard?

865


When should a type cast not be used?

627