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

write a own function to compare two strings with out using stringcomparition function?

6 Answers   LG Soft, Sasken,


# define prod(a,b)=a*b main() { int x=2; int y=3; printf("%d",prod(x+2,y-10)); } the output of the program is a.8 b.6 c.7 d.none

7 Answers   Microsoft, TCS,


What is type qualifiers?

0 Answers  


array of pointer pointer to array pointer to pointer

1 Answers   MAHINDRA,


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

0 Answers   CSC, Wipro,






Why void is used in c?

0 Answers  


Write a c program to print the even numbers followed by odd numbers in an array without using additional array

1 Answers   Tech Mahindra,


Is double link list a linear data structure? If Yes, Why?If No, Why?

4 Answers  


How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST

6 Answers   Adobe, Huawei,


how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"

1 Answers  


What is function definition in c?

0 Answers  


Which of the following are valid "include" formats? A)#include and #include[file.h] B)#include (file.h) and #include C)#include [file.h] and #include "file.h" D)#include <file.h> and #include "file.h"

15 Answers   Accenture,


Categories