RK

RK Khadgaokar

1 year ago

How do you declare a pointer to an integer in C?

0
6 Comments

Discussion

AN

Aarti Naidu
1 year ago

You declare a pointer to an integer in C using the syntax 'int *ptr;' where 'ptr' is the pointer variable.
1
RK

RK Khadgaokar
1 year ago

Thanks for the clarification!
0
MBB

Mahmood Bijoy Biswas
1 year ago

Can you also explain how to assign an address to it?
0
EMH

Emran Moti Hans
1 year ago

Great example, can we also get examples on pointer arithmetic?
0
PV

Padmini Varghese
1 year ago

Make sure not to dereference uninitialized pointers!
0
NO

Naval Om
1 year ago

Pointers can be confusing, but this helps.
0
JA

Joseph Abraham
1 year ago

Remember to initialize the pointer before use!
0