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
Write programs for String Reversal & Palindrome check
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What is meant by recursion?
will u please send me the placement papers to my mail???????????????????
What is difference between constant pointer and constant variable?
Explain 'far' and 'near' pointers in c.
What are the similarities between c and c++?
What are the application of c?
What are global variables and explain how do you declare them?
Write a program to print ASCII code for a given digit.
can any one provide me the notes of data structure for ignou cs-62 paper
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is dynamic dispatch in c++?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What is null pointer in c?