S
S
sddvxd2018-11-27 14:18:11
C++ / C#
sddvxd, 2018-11-27 14:18:11

How to define type 'array of 7 pointers to integer' in typedef?

Good afternoon, tell me please, I have never met with such constructions (number of elements in typedef)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2018-11-27
@sddvxd

typedef int* sevenPtr[7];
int* a = nullptr;
int b = 7;
sevenPtr c = {a, a, a, &b, a, a, nullptr};

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question