What is C prograammng?
C programming is one of the most powerful programming languages. It is developed by Dennis Ritchie at Bell Laboratories in 1972. The C programming language is structure programming language and general purpose programming language as well. It is a highly efficient programming language and easy to learn. It has both properties high-level language and low-level language. It is the most powerful programming language because it is used to develop software as well as programs.
Your first c programming
Write a program to print 'Welcome' on display
Output
(1) Header files
In c header files are used to function definition. which is using #include
#include<stdio.h>: It is a standard input output header file. It contains the function definition of input-output functions such as scanf(), printf() etc.
#include<conio.h>: It is a header file, which is included in the program this isUsed to use, clrscr(), getch(), etc. We do not need to include this file in the C program.
#include<math.h>: This header file is used for mathematical functions such as pow(), sqrt(), sin(), tan(), cos() etc.
#include<string.h>: It is string header file.It use for string manipulation. It contains the function definition of string processing functions such as strlen(), strcat(), strcpy() etc.
(2) void main():- Every C program should begin with main(). Thus void main() is the starting point of the program.
(3) printf():- It is used to display the conversation characters along with some unchanged character.
\n:- It used to print on the new line.
Operators in c:
Arithmetic operators
operators meaning example
+ Addition a+b
- subtracting a-b
* Multiplication a*b
/ Division a/b
% Modulus a%b
Relational operators
operators meaning example
< less than a<b
> Greater than a-b
<= less than or equal to a<=b
>= Greater than or equal to a>=b
== Equal to a==b
!= is not equal to a!=b
Logical operators
operators meaning example
&& Logical AND a&&b
|| Logical OR a/b
!= Logical Not a!=b
ONE IMPORTANT EXPLANATION OF C STRUCTURE
For more operators
Enter here for Ternary operator
Enter here for the Assignment operator
Data type
The data type is a way of the hold of data in the C language.
Basic data type
Variable type keyword Format conversation specifics
Character char %c
Integer int %d
Float float %f


0 Comments
Please do not enter any spam link on comment box