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);}
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / shrinidhi
in the question in 'func' function there is a word 'eale'.
what u mean by that? if it is 'else' then the ans is "1".
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / 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 |
Answer / anilkumar927@gmail.com
It gives errors and warring……….. those are as follows:
1) i is not declared in main function
2) Return type of func is not mentioned
3) eale is wrong in the func function
if every thing is correct in the QNS then
i hope that the ans is "zero"
| Is This Answer Correct ? | 4 Yes | 4 No |
what is y value of the code if input x=10 y=5; if (x==10) else if(x==9) elae y=8; a.9 b.8 c.6 d.7
suppose there are five integers write a program to find larger among them without using if- else
wat are the two methods for swapping two numbers without using temp variable??
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
any string of bits of length 'n' represents a unique non- negative integer between.............?
What is the difference between declaring a variable and defining a variable?
why the execution starts from main function
How do you write a program which produces its own source code as output?
m=++i&&++j(||)k++ printf("%d"i,j,k,m)
What are the different types of objects used in c?
What is a program flowchart and how does it help in writing a program?
What is the difference between printf and scanf in c?