in DS recategorized by
339 views
1 vote
1 vote

A program $\text{P}$ reads in $500$ integers in the range $[0\dots100]$ representing the scores of $500$ students. It then prints the frequency of each score above $50.$ What would be the best way for $\text{P}$ to store the frequencies?

  1. An array of $50$ numbers
  2. An array of $100$ numbers
  3. An array of $500$ numbers
  4. A dynamically allocated array of $550$ numbers
in DS recategorized by
by
339 views

1 Answer

0 votes
0 votes

$\textrm{Option A is correct.}$

GATE2005-5