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 / 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 |
Post New Answer View All Answers
C language questions for civil engineering
Is fortran still used in 2018?
What are categories used for in c?
What's the difference between constant char *p and char * constant p?
What does void main () mean?
How can I prevent another program from modifying part of a file that I am modifying?
How can I get the current date or time of day in a c program?
How many levels of pointers have?
Explain what are the different data types in c?
What is the difference between procedural and functional programming?
Explain can you assign a different address to an array tag?
Describe how arrays can be passed to a user defined function
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What is the difference between Printf(..) and sprint(...) ?
What is the difference between char array and char pointer?