The ones who are crazy enough to think they can change the world are the ones who do.- Steve Jobs
Keywords are those words which tells the compiler what to do . In C Programming, keywords are otherwise said to be reserved words.
Keywords in Uppercase letters can be used as identifiers but considers as a poor programming practice.
#include <stdio.h> int main() { int BREAK = 1; printf("The value of BREAK = %d ",BREAK); return 0; }
Here we used BREAK as an identifier, but the compiler haven't through any error instead it replied with an output.
There are 32 keywords defined in C Programming.
auto | extern | sizeof |
break | float | static |
case | for | struct |
char | goto | switch |
const | if | typedef |
continue | int | union |
default | long | unsigned |
do | register | void |
double | return | volatile |
else | short | while |
enum | signed | - |
Here we extract the keywords as per usage to make a clarity view.
char | long | union |
double | short | unsigned |
float | signed | void |
int | struct | - |
case | else | switch |
default | for | while |
do | if | - |
We may make mistakes(spelling, program bug, typing mistake and etc.), So we have this container to collect mistakes. We highly respect your findings.
© Copyright 2019