Enumeration/Enumerated data types Enumeration(or enum or Enumerated data type) is a user-defined data type in C. It is mainly used to assign names to integral constants, the names make a…
Day: January 7, 2021
Union
What is a Union? A union is a special data type available in C that allows to store different data types in the same memory location. You can define a union with…
Structure
Arrays allow to define type of variables that can hold several data items of the same kind. Similarly structure is another user defined data type available in C that allows to combine…
Applications of Pointers
Applications of Pointers Imagine your friend needs to go to a grocery store but doesn’t know where one is. In helping them, you can do either: Tell them where the…
Declaration
How to Use Pointers? There are a few important operations, which we will do with the help of pointers very frequently. (a) We define a pointer variable, (b) assign the address of a variable…
Introduction To Pointers
What are Pointers? A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a…
Pointers
Pointers The pointer in C language is a variable that stores the address of another variable. This variable can be of type int, char, array, function, or any other pointer.…
Recursive functions
What are Recursive functions? Recursion is the process of repeating items in a self-similar way. In programming languages, if a program allows you to call a function inside the same…
Types of functions
Types of functions While calling a function, there are two ways in which arguments can be passed to a function: Call by value The call by value method of passing arguments to…
Introduction
Introduction to Functions As discussed A function is a group of statements that together perform a task. A function definition in C programming consists of a function header and a function body. Here…