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

What is the difference between array_name and &array_name?

1279


What does the error message "DGROUP exceeds 64K" mean?

1209


What are c identifiers?

1077


which type of aspect you want from the student.

2153


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1086


What is the difference between constant pointer and constant variable?

1204


What are identifiers in c?

1189


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1625


Why double pointer is used in c?

1022


How can you return multiple values from a function?

1101


Can a variable be both const and volatile?

1118


How many types of arrays are there in c?

1026


Write a program for Overriding.

1148


Write a code to generate divisors of an integer?

1057


What is the purpose of macro in C language?

1102