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
Is there anything like an ifdef for typedefs?
what is the significance of static storage class specifier?
Explain what is the benefit of using enum to declare a constant?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What does 1f stand for?
What does. int *x[](); means ?
What is the difference between functions abs() and fabs()?
Why c language is called c?
How can a program be made to print the name of a source file where an error occurs?
What is assert and when would I use it?
What do you mean by dynamic memory allocation in c?
What is structure data type in c?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
How can I write functions that take a variable number of arguments?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)