McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2025
→
Forum
→
How do you declare a pointer to an integ...
RK
RK Khadgaokar
1 year ago
C Programming Basic
Pointers
Syntax
How do you declare a pointer to an integer in C?
0
6 Comments
Discussion
AN
Aarti Naidu
1 year ago
Accepted answer
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
Login to comment