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

Which of the following about the C comments is incorrect ?
a.commentscan go over multiple lines
b.comments can start any where in the line
c.a line can contain comments with out any language statements
d.comments can occur within comments

Answer Posted / shikhar

answer : c
Reason : a line cannot contain comments with out any
language statements since it will give an syntax error. i.e
"the code didn't recognize the unformatted text."
for example :

scanf("%d,%d", c //dis are the values to be printed // a,b);

Here, the comments inside scanf will not recognize the
comment n hence outputs an error.

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Subtract Two Number Without Using Subtraction Operator

906


What is use of bit field?

1349


What is the difference between Printf(..) and sprint(...) ?

1634


What extern c means?

1062


What are different types of operators?

1096


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1310


What is wrong with this statement? Myname = 'robin';

1392


What does int main () mean?

1078


Why is structure padding done in c?

1191


What is static volatile in c?

1077


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2368


What does return 1 means in c?

1117


Explain the meaning of keyword 'extern' in a function declaration.

1208


What are enums in c?

1288


The difference between printf and fprintf is ?

1344