Understanding Scope & Lifetime of Variables
In this tutorial, we are going to learn about different storage classes, scope and lifetime of variables. Scope of Variables in C In C language, each variable has a storage…
Press Esc to close
Archive
In this tutorial, we are going to learn about different storage classes, scope and lifetime of variables. Scope of Variables in C In C language, each variable has a storage…
In this tutorial, we are going to learn about the concepts of dynamic memory allocation also known as DMA. In C, memory allocation can happen statically (during compile time), automatically, or…
In this tutorial, we are going to learn about the User defined functions in C. User-defined functions are the functions that are defined by the user at the…
In this tutorial, we are going to learn about Functions in C. Functions in C Language: A program can be used to solve a simple problem or a large complex problem. Programs solving…
data_type array_name[size_1][size_2][size_3].......[size_n]; //where size_1 to size_n from the dimensions of the declared array Examples: int arr_2d[3][4]; //an example for a two-dimensional array int arr_3d[3][4][2]; //an example for a…
In this tutorial, we are going to learn about Arrays in C. In a programming language, the data that has to be processed is loaded in memory and held in variables. When we…
#include <stdio.h> It makes the contents of the header file available to the compiler and the linker during the execution of programs. Now let's understand some preprocessor directives,…
In this tutorial, we are going to learn about type conversions in the C language. When an operator has operands of different types, it is referred to as…
In this tutorial, we are going to learn about derived and user defined data types in C Language. 1. Derived Data type: Data types that are derived from…
In this tutorial, we are going to learn about C floating point data types such as float, double. float Data type: In C, float data type occupies 4 bytes (32 bits) of…
Here we are going to see the Integer data types in C language. int Data Type: In C, the int data type occupies 2 bytes (16 bits) of memory to…
In this article, we are going to understand the relational operators in C Language. Relational and Equality Operators: Relational and equality operators are used to test or compare two numeric values or numeric…
In this tutorial, we are going to learn about C Expressions and Statements. C Expressions: An expression is a combination of constants and variables interconnected by one or more operators. An expression consists of one…
In this tutorial, we are going to see Logical Operators in C Language. Logical Operators: Logical operators are used to performing logical operations on the given expressions. An expression…
operand1 & operand2 where operand1 and operand2 should be of integral type. It sets a bit to 1 if and only if both the corresponding bits in its operands are 1, and to 0…
In this tutorial, we are going to learn about C arithmetic operations on integers, characters, mixed data types operators. 1. Arithmetic Operators - integers: An operator is a special symbol…
In this tutorial, we are going to learn about C data types & data type modifiers. Data types in C: When it comes to computer programming, the data…
In this tutorial, we are going to learn about the various number systems. Introduction: In computers, we normally use four different numbering systems - Decimal, Binary, Octal, and…
In this tutorial, we are going to learn about the structure of a simple C program. Structure of a C program The C source code given below prints…
In this tutorial, we are going to learn about Variables & Keywords in C Language. The character set of C language: Each and every language in the world…