News

Union in C

A union is a user-defined data type that can store different data types in the same memory location. This is unlike structures, which can only store one data type at …

Size of a structure

The size of a structure in C is the sum of the sizes of its members. The size of a structure type can be determined using the sizeof operator in C. For example, …

Bit fields in C

A bit field is a data structure that consists of one or more adjacent bits which have been allocated for specific purposes, so that any single bit or group of …

Array of struct

An array of structs in C is a collection of struct variables that are stored in contiguous memory locations. This means that the members of each struct variable are stored …

Pointer to struct

A pointer to struct in C is a variable that stores the address of a struct variable. This allows you to access the members of the struct variable indirectly, using …

typedef

The typedef keyword in C is used to create an alias for an existing data type. This can be useful for making your code more readable and maintainable. For example, …

struct in C

A struct in C is a user-defined data type that can be used to group items of possibly different types into a single type. The struct keyword is used to …

Storage Modifiers

Storage modifiers are keywords in C that are used to modify the storage class of a variable. The storage class of a variable determines its scope, lifetime, and initial value. …

How to Make Standard Types?

Standard types are the basic data types that are available in C programming language. They are defined in the <stdio.h> header file. The standard types are: You cannot make your …

2’s Complement

2’s complement is a method of representing signed numbers in binary format. In this method, the bits of the number are inverted, and a 1 is added to the end. …