Programming in C learn sample Program

Sample program of C language with structure explanation

C language is a general-purpose programming language in old-time c is know as B language that means Basic combine Programming language (BCPL).

C language is found by Denis Ritchie in 1972 something and C is used Compilers for debug and run c program it is very fast executed and compile.

C language generally says it is OOP means object-oriented  programming language but c support some OOP concept but it is a not pure Object-oriented programming 

language.

Basically, there are three types of Programming Languages..(1) Procedural Programming Language 

                                                                                                (2) Structured Programming Language
                                                                                                                                                                                                                 
                                                                                                (3)Object-oriented Programming Language

C language is used input into output using algorithms is a set of some programming instruction step which used to perform user command or user request.

You can also use the to flowchart for learning c of any other object-oriented programming language because flowchart is a symbolic set of instructions perform in c language.

Basic structure and code of the sample program of c:



here #include is a keyword to use header files and <stdio.h> is a Standard header file and <conio.h>  is a console header files which contain some identifier,c token and functions.

void main () is the main function of the program here execution part of the c language program and with void main () double bracket contains no of argument after this 

curly bracket is open part here execution starts with  curly bracket open and close between this clrscr is clear screen function which is clear output screen and print 

statement print the given statement and you can add here to understand program details of program description using in Comment section "/*"  and "*/"

this symbol start and close the comment section. during compiling compiler ignore by compiler. It is a means comment section is Non -Executable statement.

Print statement use with keyword print and open bracket "("  and close bracket ")"   and contain the message with double quotes and at the ending semicolon ;

 and end the print statement.





 










                                               

Comments

Popular posts from this blog

SQL plus and Get Started With Oracle Database 11g Express Edition