Posts

Showing posts from May, 2022

Types of Operator in C Programming Notes

In C programming there are several operators are there those are, arithmetic operator, assignment, increment , decrement, logical, conditional, comma, size of , bitwise and others. So get all types of operator in C Programming notes in simple and understandable words. An operator is a symbol that tells the compiler to perform certain mathematical or logical manipulations. In this article, I will be sharing different types of Operator in C Programming Notes . Types of Operators in C Language An operator is a symbol that tells the compiler to perform certain mathematical or logical manipulations.  C operators can be classified as 1. Arithmetic operators 2. Relational operators 3. Logical operators 4. Assignment operators 5. Increment or Decrement operators 6. Conditional operator 7. Bit wise operators 8. Special operators Increment and Decrement operators in C The Unary operator ++, --, is used as increment and decrement which acts upon single operand. Increment operator increases th...

Top 4 Operators in C Language with Examples

Operator in C programming is a symbol use to perform some operation on variables, operands or with the constant. Some operator required 2 operand to perform operation or Some required single operation. Several operators are there those are, arithmetic operator, assignment, increment , decrement, logical, conditional, comma, size of , bitwise and others. In this article, I will be sharing different types of Operator in C with examples. Types of Operators in C Language An operator is a symbol that tells the compiler to perform certain mathematical or logical manipulations.  C operators can be classified as 1. Arithmetic operators 2. Relational operators 3. Logical operators 4. Assignment operators 5. Increment or Decrement operators 6. Conditional operator 7. Bit wise operators 8. Special operators ARITHMETIC OPERATORS IN C All basic arithmetic operators are present in C. +  add - subtract * multiplication / division % modulo division(remainder) An arithmetic operation involvin...

Constants in C Language with examples explain

Constant is a any value that cannot be changed during program execution. In any Language Constants are very important, so to know Constants in C Language with examples read complete article.  In C, any number, single character, or character string is known as a constant. A constant is an entity that doesn’t change whereas a variable is an entity that may change. For example, the number 50 represents a constant integer value.  The character string "Programming in C is fun.\n" is an example of a constant character string. C constants can be divided into two major categories:  Primary constants   − Integer, float, and character are called as Primary constants. Secondary constants  − Array, structures, pointers, Enum, etc., called as secondary constants. List of Constants in C Language There are different types of constants in C programming. Decimal Constant 10, 20, 450 etc. Real or Floating-point Constant 10.3, 20.2, 450.6 etc. Octal Constant 021, 033, 046 e...

Data Types in C with examples and Size of Data Types

Data Types in C is very important concept to understand along with the size of Data Types in C. So In this article, I will be providing an information about  Data Types in C with examples and Size of Data Types . Data types refer to an extensive system used for declaring variables or functions of different types before its use. To represent different types of data in C program we need different data types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted. The value of a variable can be changed any time. C supports four different classes of data types namely: Types of Data Types in C Types Data Types Basic Data Type int, char, float, double Derived Data Type array, pointer, structure, union Enumeration Data Type enum Void Data Type void BASIC DATA TYPES in C All arithmetic operations such as Addition , subtraction etc are possible on basic data types. E.g.:       int a,b;    ...