10th Jun 2017, 2:59 AM
Bahubali
Bahubali - avatar
2 Answers
+ 3
You've already declared 'p'. Also, just a size goes in the [] (no declarations). int const p=5; int ar[p]; Note: By convention, constants are written ALLCAPS and...I'm used to seeing 'const' first, like this: const int P=5;
10th Jun 2017, 3:53 AM
Kirk Schafer
Kirk Schafer - avatar
0
kirk's right, but just one more thing to display an array item u must use ar[position num]
1st Sep 2017, 12:20 AM
HJ🐓TDM