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 / manju
The code returns error as i is undeclared see in main int
=3 and instead of else eale is used.
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What is a const pointer in c?
What is main () in c?
What is assert and when would I use it?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Can math operations be performed on a void pointer?
how to construct a simulator keeping the logical boolean gates in c
What is difference between main and void main?
What is a keyword?
Should I learn data structures in c or python?
What are the keywords in c?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Explain pointer. What are function pointers in C?
What are the differences between new and malloc in C?
List some of the dynamic data structures in C?