Introduction And Getting Started With C

Prashant | Sat, 06 Jun, 2020 | 234

Introduction of C

C prgramming is a eay to learn language which is used from past many years repeatedly. Now several other languages has evolved and are brought into daily use, but in order to get deep and basic understanding its good to start with C programming.

It was developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system. Also It keeps fluctuating at number one scale of popularity along with Java programming language, which is also equally popular and most widely used among modern software programmers.

Beginning with C programming, Why we print "Hello world":

In all programming language we start learning with printing "Hello world!", And why do we do so ?.

Well programming is a complete diffrent world which has its own universe, just we need to do is start exploring it like scientists do.

Traditionally, Hello World programs are used to illustrate how the process of coding works, as well as to ensure that a language or system is operating correctly. They are usually the first programs that new coders learn, because even those with little or no experience can execute Hello World both easily and correctly.

Basic Structure of C programming

We will see a simple program of printing "Hello World!" to see how does coding in C looks like.

/* My first program */
#include <stdio.h>
int main()
	printf("Hello World! \n");
	return 0;

Now We will discuss about the above code in brief

The very first line /* My first Program */ is nothing but a comment, We will learn about comments in further tutorials.

The the second line #include <stdio.h> is a header file, we can consider a header file as some bucket or library where we have all set of rules written like what and how a line of code will perform.

Coming to the third line int main() is a main block of a programming where we have have to write main codes inside it, it is also called System declared thread, which are defined by programmers, it is the first function that tells the compiler to execute your program. Program execution starts here.

int is a return type of the function, which returns an integer value after the execution of the program to the operating system.


{ and }, these two braces are the starting and ending braces of the main segment, these defines the block of particular function.

printf("Hello World! \n");

printf is a library function, that is used to print text as well as values of the variables to the standard output device. It is declared in stdio.h.

return 0;

Since main has int return type, so we must use return statement at the end of the main’s code, just before the end brace (}).








Related Articles :- 

1Introduction And Getting Started With C

2Basic Of C Language

3. Why We Should Use C Language

4. Applications Of C Programming

5. Basic Rules For Writting C Program

6. Keywords In C Language

7. Comments In C Programming

8. Tokens In C

9. Difference Between Int Main And Void Main

10. C Processor And Macros

11. Variables In C

12. Types Of Variables In C

13. Difference Between Local And Global Variable

14. Difference Bwtween Auto / Extern / Static Variable

15. Constant In C

16. How To Access Global Variable Using Extern Keyword In C

17. Exit And Return Staterment In C

18. Print Float Value Upto N Decimals In C Programming

19. How To Print Multiline Message Using Single Printf In C Programming ?

20. What Value Returned By Scanf Function In C Language ?

21. What Value Is Returned By Printf And Scanf In C

22. What Do 'Lvalue' And 'Rvalue' Mean In C/C++?

23. Errors In C Programming ?


No One    Sun, 14 Jun, 2020

good one.

Leave a comment