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

The operation of a stair case switch best explains the a) or operation b) and operation c)exclusive nor operation d)exclusive or operation Which of the following is/are syntactically correct? a) for(); b) for(;); c) for(,); d) for(;;);

1 Answers   HCL, Public Service Commission,


What is an array? What the different types of arrays in c?

0 Answers  


main() {int a=200*200/100; printf("%d",a); }

14 Answers   TCS,


what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }

7 Answers  


Write a program to enter the name and age. If age>28 then find salary categories. if age<28 then find that you are gaduate or not.

1 Answers  






second highest number in a given set of numbers

3 Answers   TCS,


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

0 Answers   TCS,


What is information technology.

1 Answers  


What is the difference between exit() and _exit() function?

0 Answers  


What is a function in c?

0 Answers  


What is the right way to use errno?

0 Answers  


What is the hardest programming language?

0 Answers  


Categories