Simple Array Questions in C
Find Output Array Questions
-----------------------------------------------------------------------------------------------------
1.
A pointer to a block of memory is effectively same as an array.
A. True
B. False
Answer: A
-------------------------------------------------------------------------------------------------------------------
2.
Does this mentioning array name gives the base address in all the contexts?
|
A. Yes
B. No
Answer: B
3.
Is there any difference int the following declarations?
int fun(int arr[]);
int fun(int arr[2]);
int fun(int arr[2]);
A. Yes
B. No
Answer: B
-------------------------------------------------------------------------------------------------------------
4.
Are the expressions arr and &arr same for an array of 10 integers?
|
A. Yes
B. No
Answer: B
--------------------------------------------------------------------------------------------------