• Articles
  • Tutorials
  • Interview Questions

Keywords and Comments

Tutorial Playlist

 Keywords

Keywords are the reserved words which are used for specific purpose. It cannot be used as variable, constants. Keywords in C are –

auto break case char const continue default do
double else enum extern float for goto if
int long register return short signed sizeof static
struct switch typedef union unsigned void volatile while

Watch this C Programming & Data Structure by Intellipaat:

Youtube subscribe

Comments

It is useful to place a comment in place to indicate what you are doing. It is added into the program for making the program easier to understand and these are not compiled by the compiler or interpreter. It is useful if you want someone else to be able to ever read your code.
There are two ways to use comment in C which are as follows:

  • Single Line comment
  • Multi Line comment

Certification in Full Stack Web Development

Single Line comment

It is used to apply the comment on a single line. To apply single line comment // is used.
e.g.

printf(“hello Intellipaat"); // It will print the string hello Intellipaat

Read our step-by-step guide to writing a Hello World Program in C and get started with programming today!

Multi-Line comment

It is used to apply the comment on multiple lines. To apply multi line use /*comment */.
e.g.

printf(“hello Intellipaat”); /*It will print the string hello Intellipaat*/

Read on:- Strings in C to enhance your knowledge!

Course Schedule

Name Date Details
Python Course 27 Apr 2024(Sat-Sun) Weekend Batch
View Details
Python Course 04 May 2024(Sat-Sun) Weekend Batch
View Details
Python Course 11 May 2024(Sat-Sun) Weekend Batch
View Details

Full-Stack-ad.jpg