Practical Notes Flashcards

(1 cards)

1
Q

How to initialise an array of length n

A

int a[n];
int *p=a; //initialise pointer at start of array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly