Hardware interview practice
Associative arrays
What does the display print?
Starting point
Question code
int aa[string];
initial begin
aa["x"] = 7;
$display("%0d %0d", aa.exists("y"), aa.num());
endChoose one
Answer choices
- A. 0 1
- B. 0 0
- C. 1 1
- D. x 1
