Posts

Showing posts with the label comma

Operator in C Programming Language

An operator is a symbol which operates on a value or a variable. For example: + is an operator to perform addition. C has wide range of operators to perform various operations. C Arithmetic Operators An arithmetic operator performs mathematical operations such as addition, subtraction and multiplication on numerical values (constants and variables). Operator Meaning of Operator + addition or unary plus - subtraction or unary minus * multiplication / division % remainder after division( modulo division) Example 1: Arithmetic Operators // C Program to demonstrate the working of arithmetic operators #include <stdio.h> int main () { int a = 9 , b = 4 , c ; c = a + b ; printf ( "a+b = %d \n" , c ); c = a - b ; printf ( "a-b = %d \n" , c ); c = a * b ; printf ( "a*b = %d \n" , c ); c = a / b ;