Multiple choice

If there is an array Num[50] of integer type with size 50, then what is the correct way to store the address of an array Num in pointers variable p of integer type?

  1. p=&Num;

  2. p=Num;

  3. p=Num[0];

  4. p=Num[50];

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The statement p=Num; is the correct way to store the address in a pointer variable p. Here there is no requirement of address operator(&) before the array name.