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 / mahi
The code returns error as i is undeclared see in main
int =3 and
instead of
else eale is used.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are runtime error?
What are header files and explain what are its uses in c programming?
What does static variable mean in c?
show how link list can be used to repersent the following polynomial i) 5x+2
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What are dangling pointers? How are dangling pointers different from memory leaks?
What are register variables? What are the advantage of using register variables?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Explain what is the difference between functions getch() and getche()?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Describe the difference between = and == symbols in c programming?
Difference between exit() and _exit() function?
What is the use of clrscr?
What is printf () in c?
What is the heap in c?