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 / suresh reddy

Answer is 3

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the scope of static variables.

697


What are structures and unions? State differencves between them.

712


What are the advantage of c language?

644


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

732


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1955






How do I read the arrow keys? What about function keys?

705


In C language what is a 'dangling pointer'?

720


Differentiate between a structure and a union.

878


Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

794


What is the difference between ā€˜gā€™ and ā€œgā€ in C?

3143


Which is the best website to learn c programming?

700


Explain what are global variables and explain how do you declare them?

739


What does == mean in texting?

784


What does typeof return in c?

733


What is string function in c?

620