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

A29919. 下面代码的描述中,正确的是( )。void n_chars(char c, int n) { while (n-- > 0) cout << c;}char my_char = 'w';int times = 5;n_chars(my_char, times);

单选题 较难

题目描述

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

void n_chars(char c, int n) {

      while (n-- > 0)

            cout << c;

}

char my_char = 'w';

int times = 5;

n_chars(my_char, times);

选项(单选)

上一题 下一题