Introduction to C

The C language was first developed by
Ken Thompson
Dennis Ritchie 
In the beginning they developed programming language called B.
After doing some alterations they have developed a new language called C.

For more information regarding C check this video : https://youtu.be/wKoGImLA2KA

This channel telusko learning is what am using for developing my programming skills. If you are interested to more then check out his channel 

EXAMPLE PROGRAM :
           Lets  consider a simple program
                            
                            #include<stdio.h>
                            main()
                            {
                             printf("Hello world");
                            }

Printf("Hello world");
  • This line indicates that we want to execute the string "Hello world".
  • printf is an inbuilt function used to execute the data that we have written.
  • While printing the, the data to be printed should be typed between double quotes
  • Every function should have round brackets() , ended with a semicolon ;

Printf is an inbuilt function. But how can we call it?
To call this inbuilt function we use stdio.h

stdio.h
  • stdio - Standard input output
  • h - header file
  • Header file has the definition of all the functions.
  • Definition for the function printf(); will be available in the stdio file
include
  • To include the header file we use include
#
  • # is the preprocessor
  • Preprocessor is used to include all the files before execution.
main()
  • A C program can't be executed without a main function
  • The CPU first executes the main function first.
For the detailed explanation check-out the video :   https://youtu.be/fmyRqhaqFXA


Comments