不挂科搜题免费

问题:

在 C#中,表示一个字符串的变量应使用以下哪条语句定义?

选项

  • CString str;

  • string str;

  • Dim str as string

  • char * str;

  • 答案:

    B.string str;