Hardware interview practice
Dynamic arrays and queues
What is printed?
Starting point
Question code
int da[] = new[3];
int q[$] = '{10, 20};
initial $display("%0d %0d", da.size(), q.size());Choose one
Answer choices
- A. 0 2
- B. Compilation error because queues have no size method
- C. 3 20
- D. 3 2
