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 / fazlur rahaman naik & praneeth
the answer will b 1.
| Is This Answer Correct ? | 26 Yes | 3 No |
Post New Answer View All Answers
What is identifiers in c with examples?
Define circular linked list.
what is a function method?give example?
How many loops are there in c?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
Is there a way to compare two structure variables?
What are the properties of union in c?
How will you divide two numbers in a MACRO?
Describe the difference between = and == symbols in c programming?
Why does everyone say not to use gets?
What is bin sh c?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
write an algorithm to display a square matrix.
difference between native and cross compilers
What is the use of getch ()?