How we can insert comments in a c program?



How we can insert comments in a c program?..

Answer / Reena Ray

In C, comments are inserted using two types: single-line comments (//) and multi-line comments (/* ... */). Single-line comments start with // and end at the end of the line. Multi-line comments start with /* and end with */.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what is d pitfalls of registers variables

3 Answers   TCS,


main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }

6 Answers  


Explain spaghetti programming?

1 Answers  


How can I implement sets or arrays of bits?

0 Answers  


Is c language still used?

1 Answers  


Combinations of fibanocci prime series

1 Answers  


how to implement stack operation using singly linked list

2 Answers  


Are there namespaces in c?

1 Answers  


How many levels of pointers can you have?

1 Answers  


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

1 Answers  


What is pointer in c?

1 Answers  


if we take a number as a char then can we manipulate(add, subtract) on this number

2 Answers  


Categories