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
Can you write a programmer for FACTORIAL using recursion?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
What is the difference between strcpy() and memcpy() function in c programming?
What is the difference between union and structure in c?
What is a wrapper function in c?
What is queue in c?
Difference between strcpy() and memcpy() function?
How can I insert or delete a line (or record) in the middle of a file?
What are nested functions in c?
What is hashing in c?
Why pointers are used?
Is it acceptable to declare/define a variable in a c header?
What are the 4 types of functions?
How do you do dynamic memory allocation in C applications?
Can include files be nested? How many levels deep can include files be nested?