Skip to main content

Keywords and Comments in C


KEYWORDS IN C

For better blogs do comment your opinion and share the blog


What are Keywords?

Keywords are the words that convey a special meaning to the compiler. This means the meaning of every particular keyword is already defined to the compiler of the Language.
There are total 32 Keywords in C Language and all have their meaning fixed to the compiler.
These are the keywords in C.

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

The Keywords in Red are the data types they are used to define the data type of a variable.
Example: int i; float f; char ch; long l;
The Usage of these keywords will be covered as they arrive in programming.



COMMENTS IN C

  • ·       Comments are used in programs to explain or justify meaning of a program or any statement or any set of code.
  • ·       Comments are also used for documentation of a program or project in which the name of program, aim of program, date of program development can be written.
  • ·       Comments make it easy for a person other than the developer to understand the set of code.



Types Of Comments

In C there are only Single Line Comments, which means the single comment can be of one line only.
The Single Line comments are written in two ways
1.    By Using /* to start a comment and */ to end a comment.
2.    By Using (double Slash) // followed by comment to be written.

Example:

#include<stdio.h>    /*including standard input-output method.
#include<conio.h>   //including console input-output method.
void main()              //the main function.
   {

}


Comments

  1. Very helpfull for begineers.....great work...keep going.Waiting for your Array content...plss do it fast.

    ReplyDelete
  2. Helpful..waiting 4 function part

    ReplyDelete

Post a Comment

Popular posts from this blog

Iteration and Iterative statements.

ITERATION IN C According to Google: Iteration is the repetition of a process or utterance. In a programming language Iteration stands for a repeating execution of a set of codes until desired condition is obtained. Iteration is done through Iterative Statements. Iteration is also called Looping, which means doing a work again and again. For better understanding of a loop, here is a Real world filmy example: Remember the climax scene from Dr. Strange (2016) where Dr. Strange goes into space to bargain for Earth’s protection from Dormammu, in order to do so he starts an endless time loop which he won’t stop until dormammu accepts his demands and when Dormammu did so the loop stopped. Iteration works in same way, considering his approach as loop’s condition. There are three Iterative statements which makes Iteration possible: For statements (loops).   While statements (loops).   Do-while statements (loops). FOR LOOP AND WHILE LOOP: T...