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 the general form of a C program?
Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.
How can I generate floating-point random numbers?
Write a program which has the following seven functions. The functions should be: • main() this calls the other 6 functions • fget_long() a function which returns a long data type from a file • fget_short() a function which returns a short integer variable from a file • fget_float() a function which returns a floating point variable from a file • fprt_long() a function which prints its single, long argument into a file • fprt_short() a function which prints its single, short argument into a file • fprt_float() a function which prints its single, floating point argument into a file. You should use fscanf() to get the values of the variables from the input (the file) and fprintf() to print the values to the other file. Pay attention to using the correct format for each of the data types.
What does c in a circle mean?
Tell us the difference between these two : #include"stdio.h" #include<stdio.h> define in detial.
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
what is the definition of storage classes?
Why can arithmetic operations not be performed on void pointers?
Why header file is used in c?
Write a program to print “hello world” without using semicolon?
How can I determine whether a machines byte order is big-endian or little-endian?