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

Answers were Sorted based on User's Feedback



Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines ..

Answer / fazlur rahaman naik

d is the answer.

Is This Answer Correct ?    32 Yes 0 No

Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines ..

Answer / s.srinivasulu

answer is d only.

Is This Answer Correct ?    8 Yes 1 No

Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines ..

Answer / arpit dhandhania

Answer is d it is not possible to write nested comments in C

Is This Answer Correct ?    8 Yes 1 No

Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines ..

Answer / kushal

@above
your syntax is false,thats why u r getting an error,
if u write like this,
scanf("%d,%d", c /*dis are the values to be printed */ a,b);
then u will nt face any error
write ans shold be
<d>

Is This Answer Correct ?    4 Yes 2 No

Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines ..

Answer / 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

Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines ..

Answer / mohmedali

b

Is This Answer Correct ?    1 Yes 12 No

Post New Answer

More C Interview Questions

can you change name of main()?how?

3 Answers   HCL, Siemens,


How do you do dynamic memory allocation in C applications?

0 Answers  


How can we allocate array or structure bigger than 64kb?

2 Answers   CSC,


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

0 Answers   Huawei,


Write a program to use switch statement.

0 Answers   Agilent, Integreon, ZS Associates,






What does sizeof int return?

0 Answers  


SRUCTURE PROGRAMMING

3 Answers   CTS, Wipro,


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

0 Answers   TCS,


how to find the largest element of array without using relational operater?

6 Answers   Satyam, Wipro,


we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language?????????????

4 Answers   Google,


How can I implement opaque (abstract) data types in C? What's the difference between these two declarations? struct x1 { ... }; typedef struct { ... } x2;

2 Answers  


what value is returned to operating system after program execution?

0 Answers  


Categories