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

Give me the code of in-order recursive and non-recursive.

1316


What do you mean by dynamic memory allocation in c?

1044


Explain the difference between strcpy() and memcpy() function?

946


How do I determine whether a character is numeric, alphabetic, and so on?

1065


Is null valid for pointers to functions?

1101


What is the difference between struct and typedef struct in c?

1080


List a few unconditional control statement in c.

923


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

1146


What is a double c?

939


Write a program to check palindrome number in c programming?

957


Can main () be called recursively?

1057


Can you please explain the difference between exit() and _exit() function?

990


When should we use pointers in a c program?

1076


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

2021


Why does not c have an exponentiation operator?

995