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 / ravinderreddy

answer will be 0 not 1

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean when a pointer is used in an if statement?

602


What is the difference between test design and test case design?

1570


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

3691


Explain how can I make sure that my program is the only one accessing a file?

625


Is c weakly typed?

578






Explain the concept and use of type void.

629


Are pointers integers in c?

611


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

770


What are run-time errors?

600


What is the size of enum in bytes?

588


What is a dynamic array in c?

597


Which type of language is c?

653


What is optimization in c?

568


What is sizeof int?

635


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

603