C - Arrays - Discussion

You Are Here :: Home > C > Arrays - Discussion

 



Q.

Which of the following statements mentioning the name of the array begins DOES NOT yield the base address?

1: When array name is used with the sizeof operator.
2: When array name is operand of the & operator.
3: When array name is passed to scanf() function.
4: When array name is passed to printf() function.

A. A B. A, B
C. B D. B, D

Answer: Option B
Explaination:

 


The statement 1 and 2 does not yield the base address of the array. While thescanf() and printf() yields the base address of the array.



Discussion

Your Comments Goes here...
NameDiscussion