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
How can I make it pause before closing the program output window?
Is c is a middle level language?
What is difference between union and structure in c?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is the use of #include in c?
I need previous papers of CSC.......plz help out by posting them.......
What is the benefit of using an enum rather than a #define constant?
Can you write the function prototype, definition and mention the other requirements.
How many types of errors are there in c language? Explain
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Explain how do you sort filenames in a directory?
What is the significance of c program algorithms?
How can I change their mode to binary?
What header files do I need in order to define the standard library functions I use?
provide an example of the Group by clause, when would you use this clause