Integers pointers in c | SoloLearn: Learn to code for FREE!

+8

Integers pointers in c

Can you declare ptr dpending on this statments ptr is an array of 12 integer pointers. ptr is an array of 12 pointers to integers. ptr is a pointer to an array of 12 integer pointers.

4/2/2019 6:47:08 PM

ABADA S

7 Answers

New Answer

+6

int *ptr[12] array of 12 ptrs to ints int (*ptr)[12] ptr to an array of 12 ints int **ptr[12] array of 12 ptrs to ptrs to ints int *(*ptr)[12] ptr to an array of 12 ptrs to ints int (**ptr)[12] ptr to a ptr to an array of 12 ints

+5

Jay Matthews your explanation rocks!

+4

Thank you Jay Matthews

+3

This question is in a challenge I do slightly know linked list

+3

This is a challenge the question was int *ptr[12] and ptr is one of the previous statment But I can't defferentiate between them

+3

Wow this is amazing

+2

I'd love to help you but I don't understand the question. If I had code to go by it would be easier.