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 |
write a own function to compare two strings with out using stringcomparition function?
# 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
What is type qualifiers?
array of pointer pointer to array pointer to pointer
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Why void is used in c?
Write a c program to print the even numbers followed by odd numbers in an array without using additional array
Is double link list a linear data structure? If Yes, Why?If No, Why?
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"
What is function definition in c?
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"