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 is assert and when would I use it?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Does c have enums?
Why c is called top down?
Define circular linked list.
What is a stream water?
What is a nested loop?
What is methods in c?
Hi can anyone tell what is a start up code?
Define Spanning-Tree Protocol (STP)
what is a function method?give example?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is static memory allocation?
what is event driven software and what is procedural driven software?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays