Skip to main content

Posts

Showing posts with the label c language notes

Keywords in C

  Keywords in C A keyword is a  reserved word . You cannot use it as a variable name, constant name, etc. There are only 32 reserved words (keywords) in the C language. A list of 32 keywords in the c language is given below: 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 We will learn about all the C language keywords later.

Basic C Language Notes

  First C Program Before starting the abcd of C language, you need to learn how to write, compile and run the first c program. To write the first c program, open the C console and write the following code: 1.       #include <stdio.h>      2.      int  main() {    { 3.      printf( "Hello C Language" );     4.      return  0;    5.      }   #include <stdio.h>  includes the  standard input output  library functions. The printf() function is defined in stdio.h . int main()  The  main() function is the entry point of every program  in c language. Compilation process in c What is a compilation? The compilation is a process of converting the source code into object code. It is done with the help of the compiler. The compiler che...