不凡考网

下面各选项中,均是C语言中合法标识符的选项组是

  • 下载次数:
  • 支持语言:
  • 1033
  • 中文简体
  • 文件类型:
  • 支持平台:
  • pdf文档
  • PC/手机
  • 【名词&注释】

    关键字、初始化(initialization)、自定义(user-defined)、命令行(command line)、相关内容(related contents)、不合法、头文件、C源程序(c source program)、不能实现(cannot realize)、放在首位(in the first place)

  • [单选题]下面各选项中,均是C语言中合法标识符的选项组是

  • A. for china to
    B. long_123 short 56_do
    C. void union _342
    D. text _023 _3ew

  • 查看答案&解析 点击获取本科目所有试题
  • 举一反三:
  • [单选题]以下叙述中正确的是( )。
  • A. 预处理命令行必须位于C源程序(c source program)的起始位置
    B. 在C语言中,预处理命令行都以""开头
    C. 每个C程序必须在开头包含预处理命令行;include stdio.h>
    D. C语言的预处理不能实现(cannot realize)宏定义和条件编译的功能

  • [单选题]以下程序的执行结果是 ______。includeclass Sample{ int x; public: Sample(){}; S
  • 以下程序的执行结果是 ______。 #includeiostream.h> class Sample { int x; public: Sample(){}; Sample(int a){x=a;} Sample(Sample &a){x=a.x+1;} void disp(){cout"x="xend1;} } void main() { Sample s1(2),s2(s1); s2.disp(); }

  • A. x+1;} void disp(){cout"x="xend1;} } void main() { Sample s1(2),s2(s1); s2.disp(); }
    B. x=2
    C. x=3
    D. x不确定
    E. x=0

  • [单选题]请选出以下语句的输出结果 ( ) printf("%d\n,strlen("\t\"065\xff\n"));
  • A. 5
    B. 14
    C. 8
    D. 输出项不合法,无正常输出

  • [单选题]有如下程序:include using namespace std;class Base{public:Base(){ cout
  • 有如下程序: #include iostream> using namespace std; class Base { public: Base(){ cout"BB";f(); } void f() { cout"Bf";} }; class Derived:public Base { public: Derived() { cout"DD"; } void f(){ cout"Df"; } }; int main(){ Derived d; return 0;}执行上面的程序将输出______ 。

  • A. BBBfDD
    B. BBDfDDDf
    C. DD
    D. DDBBBf

  • 本文链接:https://www.zhukaozhuanjia.com/download/e6jxpq.html
  • 推荐阅读
    @2019-2026 不凡考网 www.zhukaozhuanjia.com 蜀ICP备20012290号-2