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


Please Help Members By Posting Answers For Below Questions

Why pointers are used in c?

671


What is static volatile in c?

661


What is a structure member in c?

639


What is a stream water?

771


What is data type long in c?

724






Explain what are compound statements?

702


write a program in c language to print your bio-data on the screen by using functions.

6369


how logic is used

1587


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

764


Is there any demerits of using pointer?

711


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

778


What are global variables?

738


What are the disadvantages of external storage class?

689


Explain what header files do I need in order to define the standard library functions I use?

735


Is c++ based on c?

749