Question

In C, when an array is passed as a parameter to a function, what does sizeof(arr) typically return when evaluated inside that function?

A The size of just the first element multiplied by 2
B A compile-time error is always generated
C The size of a pointer, since the array has decayed to a pointer
D The actual total size of the full original array
E The size of only the first array element
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)