Understanding the Difference between int and int* Pointers

  • Thread starter Thread starter transgalactic
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
transgalactic
Messages
1,386
Reaction score
0
when i declare

Code:
int* ptr_a, ptr_b;

why the type of ptr_b is int
and not int*

?
 
Physics news on Phys.org