Operators and Types of Operators Programming

C – Operators and Types of Operators

  • January 3, 2021
  • 0 Comments

C language has different character sets and symbols. There are many special characters with special meaning. Operators are special symbols which cause to perform mathematical or logical operations. Following are the symbols used for arithmetic operators in C. Operators Meaning + Addition – Subtraction * Multiplication / Division % Remainder % operator is also referred […]

Statements and Types of Statements Programming

C – Statements and Types of Statements

  • January 3, 2021
  • 0 Comments

Any line written in a ‘c’ editor that normally terminates by a semicolon ‘;’ is  called statement. int a,b,c,d=55;float rate;char n;  Null Statement If you place a semicolon by itself on a line, you create a null statement-a statement that doesn’t perform any action, that is known as a null statement. This is perfectly legal […]

Precedence and Associativity and Rules Programming

C – Precedence and Associativity and Rules

  • January 3, 2021
  • 0 Comments

The compiler evaluates a single operator at a time. If more than one operator appears in an expression the compiler should decide which one to evaluate first. The rule that specifies which operator to evaluate first called precedence of the operator. The operator with higher precedence is evaluated first and lower precedence operators are evaluated […]

Digital Differential Analyzer Program in C Programming

C – Digital Differential Analyzer Program in C

  • January 3, 2021
  • 0 Comments

The digital differential analyzer ( DDA ) is a scan-conversion line algorithm based on calculating either dx or dy, using the equations dy=m*dx and dx=dy/m. In this algorithm, the line is sampled at unit intervals in one coordinate and determine corresponding integer values nearest the path for another coordinate. If slope m<1, we sample at […]

Constant and Types of Constant Programming

C – Constant and Types of Constant

  • January 3, 2021
  • 0 Comments

Constants, also called literals, are the actual representation of fixed values used in the program. All the numeric representations without fractional (such as 0, 20, 81563) are considered as the integer constant and all the numeric representation that has fractional part or exponential part (such as 5.6, 3.3, 3.55e55) are known as floating point constants. […]

C - Identifiers, Rules for Naming Identifiersbe mine_ Programming

C – Rules for Naming Identifier in C

  • January 3, 2021
  • 0 Comments

Identifier in C Identifiers in the C programming are defined elements like the name of variables, function arrays, structures, etc, They are the fundamental requirement of any language. These are token which is composed of a sequence of letters, digits, and underscore ( _ ). Every language has its own rules for naming identifiers. Identifiers […]