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
What does it mean when a pointer is used in an if statement?
What is the difference between test design and test case design?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
Explain how can I make sure that my program is the only one accessing a file?
Is c weakly typed?
Explain the concept and use of type void.
Are pointers integers in c?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
What are run-time errors?
What is the size of enum in bytes?
What is a dynamic array in c?
Which type of language is c?
What is optimization in c?
What is sizeof int?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?