What is String

In C programming, a string is a sequence of characters terminated with a null character \0. For examples: char str[] = “Topperworld\0”; When the compiler encounters a sequence of characters enclosed in the double quotation marks, it appends a null character \0 at the end by default. Declaring a String in C : A String …

What is String Read More »

Function Pointer in C

In C programming language, we can have a concept of Pointer to a function known as function pointer in C. In this tutorial, we will learn how to declare a function pointer and how to call a function using this pointer. To understand this concept, you should have the basic knowledge of Functions and Pointers …

Function Pointer in C Read More »

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 »

Header Files in C

Header files are additional files in a C language containing definitions of different functions and their associated variables that need to be imported into a C program with the help of a preprocessor #include statement. All the header files have a ‘.h’ extension that contains C function declarations and macro definitions. The default header file …

Header Files in C Read More »

Union in C

Union is an user defined datatype in C programming language. It is a collection of variables of different datatypes in the same memory location. We can define a union with many members, but at a given point of time only one member can contain a value. Unions can be very handy when you need to …

Union in C Read More »

// Sticky ads
Your Poster