Category: C programming

Operators in C Language

Operators in C Language C language supports an upscale set of intrinsical operators. AN operator could be an image that tells the compiler to perform an exact mathematical or logical manipulation. Operators are utilized in programs to control knowledge and variables. C operators can be classified into the following types: Arithmetic operators Relational operators Logical…
Read more

Escape Sequence in C

Escape Sequence in C An escape sequence in C language is a sequence of characters that doesn’t represent itself when used inside string literal or character. It is composed of two or more characters starting with backslash \. For example: \n represents new line. List of Escape Sequences in C Escape Sequence Meaning \a Alarm…
Read more

Data types in C

Data types in C C data types are defined as the data storage format that a variable can store data to perform a specific operation. Data types are used to define a variable before to use in a program. Size of variable, constant and array are determined by data types. C – DATA TYPES: There…
Read more

Algorithm and Flowchart

Algorithms and flowcharts are two different tools used for creating new programs, especially in computer programming. An algorithm is a step-by-step analysis of the process, while a flowchart explains the steps of a program in a graphical way.  Algorithm To write a logical step-by-step method to solve the problem is called algorithm, in other words,…
Read more

7 steps of c programming

7 steps of c programming C as you’ve seen, is a compiled language. If you are accustomed to using a compiled language, such as Pascal or FORTRAN, you will be familiar with the basic steps in putting together a C program. However, if your background is in an interpreted language, such as BASIC, or in…
Read more

C Programs-Print Hello word

1.Print Hello word #include<stdio.h> void main() { printf(“Hello World”); getch(); } 2. Program to assign values of two numbers and print their addition. #include<stdio.h> #include<conio.h> void main() { int a,b,ans; clrscr(); a=10; b=20; ans=a+b; printf(“Addition is : %d”,ans); getch(); } 3.Program to accept values of two numbers and print their addition. include<stdio.h> void main() {…
Read more