C Programming

Master the fundamentals of C programming. Learn syntax, pointers, and memory management to build a strong foundation in computer science.

Types of Pointers in C

A pointer is a variable pointing to the address of another variable. It is declared along with an asterisk symbol (*). A pointer can also be used to refer to another pointer function. A pointer can be incremented/decremented, i.e., to point to the next/ previous memory location. The purpose of pointer is to save memory […]

Types of Pointers in C Read More »

Pointers in C

A pointer is a variable pointing to the address of another variable. It is declared along with an asterisk symbol (*). A pointer can also be used to refer to another pointer function. A pointer can be incremented/decremented, i.e., to point to the next/ previous memory location. The purpose of pointer is to save memory

Pointers in C Read More »

C Preprocessor Directives

The C preprocessor is a micro processor that is used by compiler to transform your code before compilation. It is called micro preprocessor because it allows us to add macros.All preprocessor directives starts with hash # symbol. Some advantages of using preprocessor are- Readability of the program is increased. Makes the program portable and efficient.

C Preprocessor Directives Read More »

File Handling in C

What is File Handling in C? A file is nothing more than a method of permanently storing data in the form of a series of bytes on a disc. The contents of a file are not as volatile as the memory of a C compiler. When declaring a file in C, the structure pointer of

File Handling in C Read More »

Structures in C

The structure is a user-defined data structure that is used to bind two or more data types or data structures together. Like for storing details of a student, we can create a structure for student that has the following data types: character array for storing name, an integer for storing roll number, and a character

Structures in C Read More »

Operators in C

Operators are symbols that help in performing operations of mathematical and logical nature.The classification of C operators are as follows Arithmetic Relational Logical Bitwise Assignment Conditional Uses of Operators in C:- The operators basically serve as symbols that operate on any value or variable. We use it for performing various operations- such as logical, arithmetic,

Operators in C Read More »

Two Dimensional Array in C

The two-dimensional array can be defined as an array of arrays.A two-dimensional array can be used to represent a matrix, a table or board games (Sudoku). The row and column positions are given as successive indices. When you declare a variable of such an array, use a pair of square brackets for each dimension. Declaration

Two Dimensional Array in C Read More »

Array in C

Array in C programming language is a collection of fixed size data belongings to the same data type. An array is a data structure which can store a number of variables of same data type in sequence. These similar elements could be of type int, float, double, char etc. Properties of Array in C :

Array in C Read More »