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

Study the code:
void show()
main()
{
show();
}
void show (char *s)
{
printf("%sn",s);
}
What will happen if it is compiled & run on an ANSI C
Compiler?
A)It will compile & nothing will be printed when it is
executed
B)it will compile but not link
C)the compiler will generate an error
D)the compiler will generate a warning

Answer Posted / subbu[iit kgp]

if it is assumed that there is a semicolon after the
function prototype declaration of show(), then answer is A.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between declaring a variable by constant keyword and #define ing that variable?

3290


What are linker error?

1038


what are the 10 different models of writing an addition program in C language?

1843


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4242


Should I learn c before c++?

1180


What is linear search?

1091


What is indirection?

1026


Are global variables static in c?

1112


What is the main difference between calloc () and malloc ()?

1099


How many types of errors are there in c language? Explain

930


Why do we use int main?

1045


What are loops in c?

955


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1201


Explain threaded binary trees?

1109


What is the advantage of c?

1047