Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ615
Page ↗
Q615FWASIC interview problem

Dynamic arrays and queues

TechniquesSystemVerilogArray forms
DifficultyEasy
TopicData Structures
LanguageSystemVerilog
Format4 choices
01

Problem

What is printed?

Starting declarationSystemVerilog
int da[] = new[3];
int q[$] = '{10, 20};
initial $display("%0d %0d", da.size(), q.size());
02

Answer choices (4)