C – Operator and Expression

Operators are the mathematical symbols that are used to perform a mathematical operation on operands. These symbols tell the compiler to perform respective operations. An expression is formed by joining constants and variables in C programming. Example: In the above example, 10 and 5 are operands and + is the operation performed between these two operands. Types … Read more

C – Scope of a Variable

Scope refers to the visibility of variables. In other words, a scope is a section of a program, and the scope of variables refers to the section of the program where the variables are visible. Variable is declared and used within that region. Also, variables declared within the block cannot be accessed outside that block. Depending … Read more

C – Data Types

In C programming, data types specify the varying sizes and values in the variables that can be stored. It allocates the memory to store on OS depending on its type. A data type or simply type is an attribute of data that tells the compiler or interpreter how the programmer intends to use the data. Most programming … Read more

C – Operator precedence and Associativity

What are Precedence and Associativity? Precedence and Associativity are the rules that are used to determine the operators with the highest priority in evaluating an equation that contains different operations. For example: x = 10 + 5 * 2; In this example, x is assigned as 20, not 30 that’s because operator * has higher precedence than +, … Read more

C – Constants

Constants From the name constant, we can say that these are fix values that are used in a program and its values remain the same during the entire execution of the program. These fixed values in C are also called Literals. These constants may be any of the data-types present in C such as integer … Read more

C- Type Casting: Implicit, Explicit

Type Conversion or Type Casting is one the important concept in C programming, it converts one data type to another. It can also be called data conversion. The compiler automatically changes the data type. In C programming, typecasting operation is of two types: Implicit type casting Explicit type casting Implicit type casting: Implicit type casting … Read more