测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A66578. 下面代码的描述中,正确的是( )。1 void n_chars(char c, int n) {

单选题

题目描述

下面代码的描述中,正确的是( )。

1 void n_chars(char c, int n) { 
2  while (n-- > 0) 
3   cout << c; 
4 } 
5
6 char my_char = 'w'; 
7 int times = 5; 
8 n_chars(my_char, times);

选项(单选)