A set of names can be represented as a
A. | two-dimensional array of characters |
B. | one-dimensional array of strings |
C. | one-dimensional array of pointers to character |
D. | All of above |
Option: D Explanation : Click on Discuss to view users comments. |
If arr is a two dimensional array of 10 rows and 12 columns, then arr (5) logically points to the
A. | sixth row |
B. | Fifth row |
C. | fifth column |
D. | sixth column |
Option: A Explanation : Click on Discuss to view users comments. shivani said: (8:05pm on Monday 27th January 2014)
how its ans be sixth row.
VIKASH CHAUHAN said: (5:00am on Wednesday 31st January 2018)
Arr(0)=1st rowArr(1)= 2nd..Arr(5)=6 th
|
While sorting a set of names, representing the names as an array of pointers is preferable to representing the names as a two dimensional array of characters because
A. | storage needed will be proportional to the size of the data |
B. | execution will be faster |
C. | swapping process becomes easier and faster |
D. | All of the above |
Option: D Explanation : Click on Discuss to view users comments. |
Choose the correct statements
A. | an entire array can be passed as an argument to a function |
B. | a part of an array can be passed as argument to a function |
C. | any change done to an array that is passed as an argument to a function will be local to the function |
D. | Both (a) & (b) |
Option: D Explanation : Click on Discuss to view users comments. |