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 |
can you change name of main()?how?
How do you do dynamic memory allocation in C applications?
How can we allocate array or structure bigger than 64kb?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
Write a program to use switch statement.
0 Answers Agilent, Integreon, ZS Associates,
What does sizeof int return?
SRUCTURE PROGRAMMING
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.
how to find the largest element of array without using relational operater?
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?????????????
How can I implement opaque (abstract) data types in C? What's the difference between these two declarations? struct x1 { ... }; typedef struct { ... } x2;
what value is returned to operating system after program execution?