Beginner our view on C programming Language
History about C programming Language.
Here, we have a question is What is a Program ? A Program is a set of instruction which on execution by a machine produces a specific result. A machine needs set of instructions to perform an operation. Those set of instruction are contained in a program.
What is program? |
What is Programming languages ?
What Is a Programming Languages? |
Meaning- A programming language allows a programmer to develop instructions which can be executed by a machine. A programming language acts as an intermediate between a machine and a program.
* A program is saved/stored as a file on the computer secondary memory.
Types of programming languages
Types of programming Languages |
Machine language:- It is the most basic level of programming language. The language in which every instruction is expressed using 1 and 0 us machine language
High level language:- The high level language is uses English like phrases to write instruction comprises of algebraic expression and/or English like phrases. Means in which we write code like a English statements or algebraic form.
Assembly language:- In assembly language memories are used to perform various mathematical and logical operations. Assembly language uses for symbolic operations codes.
Important points about performing operation with help of machine:-
* If ever some operation is to be performed with the help of a machine. We need to instruct the machine/Provide detailed instruction for carrying out the operation.
Since a machine doesn’t understands natural language. The instruction are provided in a format which could be processed the machine. The language which is used to instruct the machine is called programming language.
* The set of instructions which are processed by a machine collectively form a program needs to be saved in the memory.
What is Components of a C program ?
what is components of a C program. |
Source code/program is an technical term used for the code written for an application. Code is always executed and becomes part of the output.
To provide information about the source code, We use the concept of COMMENT.
What is Comments in C Programming? How many types of Comments
what is comments in C Language? types of Comments. |
* Single Line Comment:- Single line comment can be used anywhere in the program. They render the data solving them as a comment. Single line comment is denoted by two backslash(//).
* Multi Line Comment:- To provide information which will be spanning multiple lines, We used the concept of multi line comments. They have beginning as well as ending. Means we can write multi line comment only between them /*…....*/.
What is Library Code In C language. What is relation between library and header file.
We are provided with predefined code by every programming languages. These code can be used directly in a application. This code is library code.
Library code helps in creating efficient applications. Library code is meant to be reusable. It helps in achieving RAD(Rapid Application Development).
Eg name.h (header file) This have all folder of library code. In c programming language Library code is present in header file.
Header File is a file which contains the code which is necessary to run an application. Header files are help files which contains declaration and definition of various functions, macros. Which can be used directly in the program. Every header file has a unique name and contains functionality for some specific operation.
Every header file has extension .h place where program are written is called Setup.
We can use any number of header files in a given application/program. To use/include a header file in a program, we use the following syntax:-
#include<name.h>
Pre-processor directive
We can create our own header file to achieve code reusability. We can include our own header file using the following syntax:- #include”name of header file.h”
We will going on series of C Programming language of all topics. So, you can follow us for more updates.
Thankyou for valuable feedback, it will give us more energy to make these kind of post in future, Thankyou
ReplyDelete