Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
C Language
1.8K+ articles
C Programs
705+ articles
cpp-pointer
94+ articles
Pointers
33+ articles
pointer
20+ articles
C-Pointer Basics
10+ articles
C-Pointers
64 posts
Recent Articles
Popular Articles
How to Declare and Initialize an Array of Pointers to a Structure in C?
Last Updated: 28 November 2022
Prerequisite:Structure in CArray in CIn C language, arrays are made to store similar types of data in contiguous memory locations. We can make arrays of either primitive d...
read more
Technical Scripter
C Language
Picked
Technical Scripter 2022
C-Pointers
C-Arrays
C-Structure & Union
Derived Data Types in C
Last Updated: 06 September 2023
Data types in the C language can be categorized into three types, namely primitive, user-defined, and derived data types. In this article, we shall learn about derived dat...
read more
C Language
c-array
C Basics
C-Pointers
Pointers
Arrays
C-Functions
Functions
References
How to Declare a Pointer to a Struct in C?
Last Updated: 05 February 2024
Structure (or structs) in the C programming language provides a way to combine variables of several data types under one name and pointers provide a means of storing memor...
read more
C Programs
C Language
Picked
C-Struct-Union-Enum
C-Pointers
C Examples
How to Modify Struct Members Using a Pointer in C?
Last Updated: 08 February 2024
In C++, we use structure to group multiple different types of variables inside a single type. These different variables are called the members of structures. In this artic...
read more
C Programs
C Language
Picked
C-Struct-Union-Enum
C-Pointers
C Examples
How to Create a Circular Linked List in C?
Last Updated: 20 March 2024
The circular linked list is a version of a linked list where the last node does not point to the NULL, but instead, it points back to the first node making a circular loop...
read more
C Programs
C Language
Picked
Linked Lists
C-Pointers
C-Structure & Union
C Examples
How to Declare a Pointer to a Union in C?
Last Updated: 14 February 2024
Union is a user-defined data type in C language that can contain elements of the different data types and pointers are used to store memory addresses. In this article, we ...
read more
C Programs
C Language
Picked
C-Pointers
Pointers
C Examples
How to Initialize Array of Pointers in C?
Last Updated: 22 February 2024
Arrays are collections of similar data elements that are stored in contiguous memory locations. On the other hand, pointers are variables that store the memory address of ...
read more
C Programs
C Language
Picked
C-Pointers
C-Arrays
C-Dynamic Memory Allocation
How to Create a Typedef for a Function Pointer in C?
Last Updated: 28 February 2024
In C, a function pointer is a variable that stores the address of a function that can later be called through that function pointer. The typedef is a keyword used to creat...
read more
C Programs
C Language
Picked
C-Pointers
C-Functions
C Examples
C Program to Concatenate Two Strings Using a Pointer
Last Updated: 28 November 2024
Concatenating two strings means appending one string at the end of another string. While the standard library provides strcat() for concatenation, this article will demons...
read more
C Programs
C Language
Picked
C-Pointers
C-String
C Examples
C Program to Compare Two Strings Using Pointers
Last Updated: 28 November 2024
In C, two strings are generally compared character by character in lexicographical order (alphabetical order). In this article, we will learn how to compare two strings us...
read more
C Programs
C Language
Picked
C-Pointers
C-String
C Examples
Array of Pointers to Strings in C
Last Updated: 04 April 2024
In C, arrays are data structures that store data in contiguous memory locations. Pointers are variables that store the address of data variables. We can use an array of po...
read more
C Programs
C Language
Picked
C-Pointers
C-Arrays
C-String
C Examples
Why is Conversion From String Constant to 'char*' Valid in C but Invalid in C++?
Last Updated: 02 April 2024
In both C and C++, strings are sequences of characters enclosed in double-quotes. In this article, we will learn why is the conversion from string constant to 'char*' vali...
read more
C++ Programs
C++
Picked
cpp-string
cpp-pointer
C-Pointers
C-String
CPP Examples
Is an Array Name a Pointer?
Last Updated: 18 June 2024
In C, arrays and pointers are closely related and are often considered same by many people but this a common misconception. Array names are not a pointer. It is actually a...
read more
C Language
Picked
c-array
C-Pointers
C Examples
Size of Pointers in C
Last Updated: 03 December 2024
As pointers in C store the memory addresses, their size is independent of the type of data they are pointing to. This size of pointers in C only depends on the system arch...
read more
C Language
C-Pointers
Relationship Between Pointer and Array in C
Last Updated: 03 December 2024
In C programming language, pointers and arrays are closely related. An array name acts like a pointer constant. The value of this pointer constant is the address of the fi...
read more
C Language
c-array
C-Pointers
1
2
3
4
5
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !