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
Are there namespaces in c?
Give me the code of in-order recursive and non-recursive.
What are volatile variables in c?
What is indirection? How many levels of pointers can you have?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
How to throw some light on the b tree?
The file stdio.h, what does it contain?
Tell me the use of bit field in c language?
Explain goto?
What does s c mean in text?
if p is a string contained in a string?
How many levels of indirection in pointers can you have in a single declaration?
List out few of the applications that make use of Multilinked Structures?
When c language was developed?
what is the role you expect in software industry?