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


Please Help Members By Posting Answers For Below Questions

When should the volatile modifier be used?

1108


Difference between constant pointer and pointer to a constant.

1065


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

1055


What is the need of structure in c?

1050


explain how do you use macro?

1099


Where we use clrscr in c?

1090


Why are algorithms important in c program?

1068


Why does the call char scanf work?

1154


Write a program to swap two numbers without using third variable?

1247


I heard that you have to include stdio.h before calling printf. Why?

1007


can anyone suggest some site name..where i can get some good data structure puzzles???

2018


What are the uses of a pointer?

1101


explain what are pointers?

968


When should a type cast not be used?

1005


What are near, far and huge pointers?

1013