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
Subtract Two Number Without Using Subtraction Operator
What is use of bit field?
What is the difference between Printf(..) and sprint(...) ?
What extern c means?
What are different types of operators?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What is wrong with this statement? Myname = 'robin';
What does int main () mean?
Why is structure padding done in c?
What is static volatile in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What does return 1 means in c?
Explain the meaning of keyword 'extern' in a function declaration.
What are enums in c?
The difference between printf and fprintf is ?