In This tutorial we will learn about “c” Programming terminologies
But before we start there is a question in your mind why we preferred this..?
Because, Many Times the Students or Programmers Faced Problems Regarding This, They Might have been Forgetting the Actual Meaning of These Terminologies.
So, Here We Covered Some of the Terminologies.
Let’s see some of terminologies…
1. Algorithm
“An algorithm is a set of instructions or rules designed to solve a definite problem. The problem can be simple like adding two numbers or a complex one, such as converting a video file from one format to another.”
For Example.
Write a c program for sum of two numbers.
Step 1: Start
Step 2: Declare variables num1, num2 and sum.
Step 3: Read values num1 and num2.
Step 4: Add num1 and num2 and assign the result to sum.
sum←num1+num2
Step 5: Display sum
Step 6: Stop
2. Library
“Library is the place where the actual functionality is implemented.”
i.e. they contain function body. Libraries have mainly two categories:
-> Static
-> Shared or Dynamic
3. Header Files
“The files that tell the compiler how to call some functionality (without knowing how the functionality actually works) are called header files”.
They contain the function prototypes. They also contain Data types and constants used with the libraries.
We use #include to use these header files in programs. These files end with .h extension.
4. Function Prototype
“Function prototype in C is a function declaration that provides information to the compiler about the return type of the function and the number, types, and order of the parameters the called function expect to receive”.
i.e.
int a(int x, int y);
5. Compiler
“A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or “code” that a computer's Process or uses”.
Without the compiler we can’t able to execute the code.
6. Directives
“The directives are lines included in a program that begin with the character #, which make them different from a typical source code text”.
They are invoked by the compiler to process some programs before compilation.
7. #include
“#include preprocessor directive is used to paste code of given file into current file”.
For example #include <stdio. h> : These directives tell the c processor to get stdio.h .
It is used include system-defined and user-defined header files. If included file is not found, compiler renders error.
8. <stdio.h> & <conio.h>
stdio.h is a header file in C, it is the file which contains C declaration and Macro definition to be shared between several files. stdio.h means standard input/output function which contains printf(), scanf() functions.
conio. h is a C header file used mostly by MS-DOS compilers to provide console input/output. This header declares several useful library functions for performing "console input and output" from a program.
9. Function
A function is a group of statements that together perform a task.
A function declaration tells the compiler about a function's name, return type, and parameters.
A function definition provides the actual body of the function. The C standard library provides numerous built-in functions that your program can call.
10. Body
Body of a function in C program, refers to the operations that are performed in the functions.
It can be anything like manipulations, searching, sorting, printing, etc.
Example: void main()
{
int a;
printf("%d", a);
}
Comment below if you have any queries related to the above tutorial for “c” Programming terminologies.
0 Comments