Question

Which of the following is a correct way to declare and initialize a pointer to an integer in C?

A 'int *p = 10;'
B 'int p = &value;'
C 'int *p = &value;' (assuming 'int value;' is declared)
D '*p = &value;'
E 'int *p; p = value;'
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)