![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
提问人:网友goldpine
发布时间:2022-01-07
[主观题]
【单选题】函数定义如下,若有函数调用语句y=tryfact(5);则y= 。 module tryfact; //函数的定义*****
********************************* function[31:0] factorial; input[3:0] operand; reg[3:0] index; begin factorial = operand? 1 : 0; for(index = 2;index <= operand;index="index+1)" factorial="index" * factorial; end> A、15
B、25
C、120
D、600
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/no_answer.png)