INTRODUCTION TO C PROGRAMMING | EXPLANATION OF C PROGRAMMING

Introduction to C Programming

C is a general-purpose high-level programming language used to develop portable applications and firmware. It is originally designed to develop system software and operating systems. C was developed by Dennis Ritchie at Bell Labs in the 1970s.


The first main application of C was UNIX Operating System. The main features of C include low-level access to memory, a simple set of keywords, and a clean style. Because of these features, C language is a suitable language for operating system development. Many languages ​​developed after C follow the only syntax of C language like PHP, Java, JavaScript, etc.


C some features of programming


  • C has a certain number of keywords. Including a set of control primitives such as if, for, while, switch, etc.
  • C consists of many logical and mathematical operators including bit manipulators.
  • Return values ​​of functions in C are not always required. They can also be ignored if not needed.
  •  Several assignments can also apply in a single statement.

A sample program in C–


#include <stdio.h>

void main()

{

   printf("Hello, www.akashtimes.com!");

}


Output- Hello World!


Now we try to know what is the meaning of whatever lines we have written in the above program and it is very important to know some things before knowing the meaning.


  • The computer still performs processing based on binary language.
  • To run any program on the computer, we have to give all the commands to the operating system.
  • The operating system completes our task by coordinating with the hardware based on the orders given by us.
  • The compiler of C and C Plus Plus is based on 2 Pass Compiler, that is, your program will be compiled twice, once the header file in it and then the rest of the program.

Now we will try to understand what is the meaning of each line written in the program.


#include<stdio.h>


# In the above line means pre-processor, this means that the compiler will first process the pre-processor command before processing any command. Here in this line too. h is a header file, in which the definition of the function to be used in the program is written.


void main()


This is a function, whenever we execute any program, the operating system always looks for the main function in the code of that program, and then the program starts executing. So no matter what program you create in any programming language, the main function will be there in all of them.


print(“Hello,www.akashtimes.com!”);


This is a function through which we can display a message on the screen of a computer. In this print function, we have sent an argument which is a message.



AKASH TIMES

I AM AN ENGINEER BY PROFESSION BUT BLOGGER IS MY OLD DAYS DREAM TO CREATE MY OWN SITE FOR THOSE WHO ARE CURIOUS ABOUT MY BIRTHPLACE THEN I AM COMING FROM (INDIA). THE CURRENT CITY LIVES IN NAVI MUMBAI, INDIA

Post a Comment

IF YOU HAVE ANY PROBLEM PLEASE FELL FREE TO CONTACT US BY - AKASH TIMES

PREVIOUS POST NEXT POST