Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What should malloc(0) do?

0 Answers  


c language interview questions & answer

0 Answers  


Explain how do you convert strings to numbers in c?

0 Answers  


Explain union. What are its advantages?

0 Answers  


Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986

2 Answers  


int i=10; printf("%d %d %d", i, i=20, i);

0 Answers  


How can a program be made to print the name of a source file where an error occurs?

0 Answers  


What is the difference between the local variable and global variable in c?

0 Answers  


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

0 Answers   Infosys,


main() { int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ; int i, j , k=99 ; for(i=0;i<3;i++) for(j=0;j<4;j++) if(a[i][j] < k) k = a[i][j]; printf("%d", k); }

4 Answers   Vector, Wipro, Zoho,


Difference between constant pointer and pointer to a constant.

0 Answers   Huawei,


What is Generic pointer? What is the purpose of Generic pointer? Where it is used?

3 Answers  


Categories