C Programming Operator - learnit

Home Top Ad

Post Top Ad

Saturday, April 17, 2021

C Programming Operator

C Programming Operator

C Programming Operator

C programming is ageneral-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system. C is the most widely used computer language. It keeps fluctuating at number one scale of popularity along with Java programming language, which is also equally popular and most widely used among modern software programmers.


Why to Learn C Programming?

C programming language is necessary for students and working professionals to become a great Software Engineer especially when they are working in Software Development Domain. I will list down some of the key advantages of learning C Programming


    Easy to learn

    Structured language

    It produces efficient programs

    It can handle low-level activities

    It can be compiled on a variety of computer platforms


C was initially used for system development work, particularly the programs that make-up the operating system. C was adopted as a system development language because it produces code that runs nearly as fast as the code written in assembly language. Some examples of the use of C are:


    Operating Systems

    Language Compilers

    Assemblers

    Text Editors

    Print Spoolers

    Network Drivers

    Modern Programs

    Databases

    Language Interpreters

    Utilities


C Arithmetic Operators


An arithmetic operator performs mathematical operations such as addition, subtraction, multiplication, division etc on numerical values (constants and variables).

Operator Meaning of Operator
% remainder after division (modulo division)
* multiplication
/ division
- subtraction or unary minus
+ addition or unary plus

Example

#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c,total;
a=10;
b=a;
c=b;
total=a+b+c;
printf("Value is a %d\n",a);
printf("Value is b %d\n",b);
printf("Value is c %d",c);
printf("Total %d + %d + %d=%d",a,b,c,total);
}

Output

Value is a 10
Value is b 10
Value is c 10
Total 10 + 10 + 10=30


Please Watching My Video is Below

No comments:

Post a Comment

Post Top Ad