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 / shrinidhi
in the question in 'func' function there is a word 'eale'.
what u mean by that? if it is 'else' then the ans is "1".
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Difference between linking and loading?
write a program fibonacci series and palindrome program in c
Why we use int main and void main?
Do you know the difference between exit() and _exit() function in c?
What is the purpose of macro in C language?
Why pointers are used in c?
How many bytes are occupied by near, far and huge pointers (dos)?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
What is zero based addressing?
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)
Explain Function Pointer?
What is c token?
Can you return null in c?
What are the advantages of using macro in c language?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream