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
What is the difference between array_name and &array_name?
What does the error message "DGROUP exceeds 64K" mean?
What are c identifiers?
which type of aspect you want from the student.
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What is the difference between constant pointer and constant variable?
What are identifiers in c?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
Why double pointer is used in c?
How can you return multiple values from a function?
Can a variable be both const and volatile?
How many types of arrays are there in c?
Write a program for Overriding.
Write a code to generate divisors of an integer?
What is the purpose of macro in C language?