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

if eale is else
and
int = 3 is int i = 3

then,

the answer is 1...

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you write a programmer for FACTORIAL using recursion?

704


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 difference between strcpy() and memcpy() function in c programming?

727


What is the difference between union and structure in c?

675


What is a wrapper function in c?

698






What is queue in c?

662


Difference between strcpy() and memcpy() function?

775


How can I insert or delete a line (or record) in the middle of a file?

665


What are nested functions in c?

658


What is hashing in c?

740


Why pointers are used?

730


Is it acceptable to declare/define a variable in a c header?

764


What are the 4 types of functions?

665


How do you do dynamic memory allocation in C applications?

725


Can include files be nested? How many levels deep can include files be nested?

739