What means * in C?

In C, the * symbol serves multiple purposes depending on its context:

1. Pointer Declaration

When used in variable declarations, * indicates that the variable is a pointer, meaning it stores the memory address of another variable.

Example:

int* ptr; // ptr is a pointer to an integer

2. Dereferencing a Pointer

When used with a pointer, the * operator is called the dereference operator. It accesses the value stored at the memory address that the pointer is pointing to.

Example:

int x = 10; int* ptr = &x; // ptr holds the address of x printf("%d", *ptr); // Dereferencing ptr, outputs 10

3. Multiplication Operator

The * operator is also used for arithmetic multiplication.

Example:

int result = 5 * 3; // Multiplication, result is 15

Summary:

  • Pointer Declaration: int* ptr means ptr is a pointer to an integer.
  • Dereferencing: *ptr accesses the value stored at the memory location ptr points to.
  • Multiplication: * is the multiplication operator when used between numbers.

Sources:

TAGS
Coding Interview
CONTRIBUTOR
Design Gurus Team
-

GET YOUR FREE

Coding Questions Catalog

Design Gurus Newsletter - Latest from our Blog
Boost your coding skills with our essential coding questions catalog.
Take a step towards a better tech career now!
Explore Answers
What is better than OpenAI?
What is the vision of Netflix?
What coding script does Apple use?
What is the highest job in Apple?
Which site is best for interview preparation?
What makes Zscaler different?
Related Courses
Grokking the Coding Interview: Patterns for Coding Questions course cover
Grokking the Coding Interview: Patterns for Coding Questions
The 24 essential patterns behind every coding interview question. Available in Java, Python, JavaScript, C++, C#, and Go. The most comprehensive coding interview course with 543 lessons. A smarter alternative to grinding LeetCode.
4.6
Discounted price for Your Region

$197

Grokking Modern AI Fundamentals course cover
Grokking Modern AI Fundamentals
Master the fundamentals of AI today to lead the tech revolution of tomorrow.
3.9
Discounted price for Your Region

$72

Grokking Data Structures & Algorithms for Coding Interviews course cover
Grokking Data Structures & Algorithms for Coding Interviews
Unlock Coding Interview Success: Dive Deep into Data Structures and Algorithms.
4
Discounted price for Your Region

$78

Design Gurus logo
One-Stop Portal For Tech Interviews.
Copyright © 2026 Design Gurus, LLC. All rights reserved.