Notifications
Clear all
What are pointers?
Students’s Forum
2
Posts
3
Users
0
Likes
248
Views
0
04/04/2023 10:30 am
Topic starter
How are they useful?
Answer
Add a comment
riyaponraj 04/04/2023 6:23 pm
@akshajsrivastava A pointer is a variable that stores the memory address of another variable as its value
Add a comment
1 Answer
0
04/04/2023 5:23 pm
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.
Add a comment
Add a comment
Forum Information
- 14 Forums
- 1,835 Topics
- 5,051 Posts
- 0 Online
- 1,078 Members
Our newest member: Richardnop
Latest Post: loli
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed