Make Money Online KEYWORDS Keywords in C – W3schools.in

Keywords in C – W3schools.in

Keywords in C – W3schools.in post thumbnail image


What are keywords in C?

Keywords are words that are used in a programming language to identify the type of data that is being manipulated. In C, keywords are always in lowercase.

Some of the most common keywords in C are:

int

float

char

void

while

if

else

return

The keyword int is used to declare a variable that will store an integer value. The keyword float is used to declare a variable that will store a floating point value. The keyword char is used to declare a variable that will store a character value. The keyword void is used to declare a function that does not return a value. The keyword while is used to create a loop that will execute a set of statements a certain number of times. The keyword if is used to create a conditional statement that will execute a set of statements depending on the result of a comparison. The keyword else is used to create an else clause for an if statement. The keyword return is used to return a value from a function.

Related Post