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
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Why is it important to memset a variable, immediately after allocating memory to it ?
What is modeling?
What is difference between array and structure in c?
What is difference between arrays and pointers?
Why main function is special give two reasons?
What are extern variables in c?
If fflush wont work, what can I use to flush input?
application attempts to perform an operation?
Differentiate between ordinary variable and pointer in c.
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What are structural members?
Explain how are portions of a program disabled in demo versions?
Why pointers are used?
What is union in c?