C Programming MCQ - Arrays

36:  

Choose the correct statements

A.

Array stores data of the same type

B.

Array can be a part of a structure 

C.

Array of structure is allowed

D.

All of the above

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



37:  

A file is preferable to an array of structures because

A.

file lives even after the program that created it terminates

B.

 memory space will not be wasted 

C.

there are many system tools to manipulate files

D.

All of the abone

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



38:  

Consider the declaration

char street[10] = "abcdefghi";

Choose the correct remark(s)

A.

&street and street will have different values

B.

&street is meaningless

C.

 &street+1 and street+1 will have the same values

D.

None of the above

 
 

Option: D

Explanation :

&street and street will have the values which is the starting address of the street array. However. street is a pointer to the first character whereas &street is a pointer to the entire array. The incremented values of street and &street reflects this difference.

Click on Discuss to view users comments.

Write your comments here:



Related MCQ