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
Answer / arpit dhandhania
Answer is d it is not possible to write nested comments in C
| Is This Answer Correct ? | 8 Yes | 1 No |
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 |
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 |
What is null in c?
You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?
What is output redirection?
What is sizeof int in c?
write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }
How we add our function in liabrary as liabrary function. Exp. we want use our int factorical(int); function as int pow(int,int); function working in math header file.
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is the use of a ‘