Modular division operators
BPUTSTUFFS
HOME
CATEGORIES
SERVICES
ABOUT-ME
CONTACT
Operators
Based on function of operators
Arithmetic operators
Modular division operators
Logic operators
Increament operator
Decreament operator
Conditional operator
Bitwise operator
Assignment operator
Relational operators
Based on no of operands
Unary operators
Binary operators
Ternary operators
Current Categories - C-programming
*Modular division operators – It is a Binary operator.It is used to find out remainder of a number.
Symbol
Name
%
Modular
Example-let us make a programm,which will take two numbers(operand) and find out remainder.
#include
int main() { int a,b; printf("enter two number:"); scanf("%d %d",&a,&b); printf("The Remainder is:%d\n",a%b); return 0; }
*Output-
enter two number:10 4
The Remainder is:2
Newer Post
Older Post
Home