LightBlog

Tuesday 13 November 2018

C Programming Basic - Learn C Programes Basic

C-Programming-Basic

C programming Basic


C Programming is a powerful general-purpose Programming Language. It is fast, portable and available on all platforms. If you are new to programming, then a C programming is a good option to start. How to get started in C Programming Language, this is a posts guide, why you should learn it and how you can learn it.

C Programming Language


C is a common purpose Programming Language that is used for applications of software used to make 3D movies from operating systems like Windows and IOS.

Standard C Programs are portable. The source code written in a system works without any change in any other operating system.
As has been said, this is a good language to start learning to programme. If you know C Programming, then you will not be able to understand how your program works, but it will also be able to prepare a mental picture on the way to work on the computer.

1). C is a Mother language

C Language is considered the mother of all modern programming languages, because most computers, JVM, kernel, Windows, is written in C and most Programming Languages follow C syntax, for example, C ++, Java, C #, e.t.c

2). C is a System Programming Language


A system programming language is used to create system software. C language is a system programming language because it can be used for low-level programming. It is commonly used to create hardware devices, OS, drivers, Kernel, .NET, PHP, etc.
For example, Linux has been written in C Language.

3). C is a Procedural Language


A process is known as the function, method, routine, sustain, etc. A procedural language specifies a series of steps to solve the problem. Breaks a procedural language program in programs, data structures, etc.

4). C is a Structured Programming Language

A structured programming language is the subset of the procedural language. Structure means that breaking a program into parts or blocks is easy to understand.

5). Middle Level Programming Language as C


C is considered as a medium level language because it supports both low level and high-level languages. The C Language program has changed to assembly code; This indicator supports arithmetic.

Run the program online

There are many sites that allow you to run C Programming online. What do I like ideone.com

To run C Programming in Ideone.com, select the C Language below the editor, type the code and click on Run.

Examples:

#Include <stdio.h>

int main() {

printf ("hello world!");

Return 0;

}

How "hello, world!" Program work

Why do you need a stdio.h file in this program?

In this program, we have used the printf () function which displays text inside quotation marks. Since printf () is defined in stdio.h, you need to include stdio.h.

main work

In C Programming, the code execution starts with the beginning of the main () function.

The code inside the curly braces is the main part of the main () function. The main () function is mandatory in each C program.

int main() {

// This program does nothing, but it is a legitimate program.

}

Printf () function

Printf () is a library function that sends the formatted output on the screen (displays the string inside quotation marks). Note the semicolon at the end of the statement.
In our program, it displays the world, Hello! on screen.

Return statement

Return statement return 0; The program ends in the main () function. This statement is not mandatory. However, it is considered a good programming practice to use it.

Important Tips

All programs start with the main () function and it is mandatory. You can use the required header file which is essential in the program. For example a number

Related:
Tags: c programming,c (programming language),programming,programming language (software genre),c programming language,c language,c program basics,c tutorial,basic c program,first c program,c basics,basics of c programming,language basics,programming in c,programming language,c programming exam,c program,c tutorial for beginners,c programming examples,c programming problems,c programming training,c program basic hindi

1 comment: