Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a const pointer in c?

1132


What is main () in c?

1076


What is assert and when would I use it?

1012


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

1103


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1216


Can math operations be performed on a void pointer?

1053


how to construct a simulator keeping the logical boolean gates in c

2261


What is difference between main and void main?

1214


What is a keyword?

1171


Should I learn data structures in c or python?

1027


What are the keywords in c?

1126


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2184


Explain pointer. What are function pointers in C?

1081


What are the differences between new and malloc in C?

1150


List some of the dynamic data structures in C?

1248