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 / shruti
if eale is else
and
int = 3 is int i = 3
then,
the answer is 1...
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
Can a variable be both const and volatile?
Write a program to reverse a given number in c language?
In a header file whether functions are declared or defined?
Can we initialize extern variable in c?
What does s c mean in text?
How to get string length of given string in c?
How do you generate random numbers in C?
Which driver is a pure java driver
List the difference between a "copy constructor" and a "assignment operator"?
Why do we use & in c?
what are the different storage classes in c?
Is printf a keyword?
hi any body pls give me company name interview conduct "c" language only
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
find out largest elemant of diagonalmatrix