Notifications
Clear all

What are pointers?

2 Posts
3 Users
0 Likes
248 Views
0
Topic starter

How are they useful?

riyaponraj riyaponraj 04/04/2023 6:23 pm

@akshajsrivastava A pointer is a variable that stores the memory address of another variable as its value

1 Answer
0

Pointers in C are used to store the address of variables or a memory location. This variable can be of any data type i.e, int, char, function, array, or any other pointer. Pointers are one of the core concepts of C programming language that provides low-level memory access and facilitates dynamic memory allocation.

What is a Pointer in C?

A pointer is a derived data type in C that can store the address of other variables or a memory. We can access and manipulate the data stored in that memory location using pointers.

Syntax of C Pointers

datatype * pointer_name;

The above syntax is the generic syntax of C pointers. The actual syntax depends on the type of data the pointer is pointing to.

Share: