5 years ago in C Arrays

What does the following declaration mean?
int (*ptr)[10];

[A] ptr is a pointer to an array of 10 integers
[B] ptr is array of pointers to 10 integers
[C] ptr is an array of 10 integers
[D] ptr is an pointer to array
Loading...
Next Question

Overall Stats

Attempted 263
Correct 89
Incorrect 61
Viewed 113

Answers

Guest
Guest
Deep
Deep - 1 month ago

Deep from Kolkata, India is saying ptr is a pointer to an array of 10 integers is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying ptr is array of pointers to 10 integers is correct answer

Shammi kumar
Shammi kumar - 7 months ago

Shammi kumar from Baijnath, India is saying ptr is array of pointers to 10 integers is correct answer

R.K YouTube channel
R.K YouTube channel - 8 months ago

R.K YouTube channel from Bhubaneswar, India is saying ptr is array of pointers to 10 integers is correct answer

Mohmmed Ibrahim Qambrani
Mohmmed Ibrahim Qambrani - 8 months ago

Mohmmed Ibrahim Qambrani from Karachi, Pakistan is saying ptr is array of pointers to 10 integers is correct answer

Related Questions

What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

  • [A] The compiler would report an error.
  • [B] The program may crash if some important data gets overwritten.
  • [C] The array size would appropriately grow.
  • [D] The element will be set to 0.