6 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 265
Correct 89
Incorrect 63
Viewed 113

Answers

Guest
Guest
Kittu Bhai
Kittu Bhai - 7 months ago

Kittu Bhai from Hyderabad, India is saying ptr is an array of 10 integers is correct answer

Mohamed Ali
Mohamed Ali - 7 months ago

Mohamed Ali from Sohag, Egypt is saying ptr is an pointer to array is correct answer

Deep
Deep - 9 months ago

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

indhuja indhuja
indhuja indhuja - 1 year ago

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

Shammi kumar
Shammi kumar - 1 year ago

Shammi kumar from Baijnath, India 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.