• 2022-06-14
    执行下列命令: XYZ=123.456 CH=’XYZ’ INT(&CH) 命令输出的值为______。
    A: 0
    B: 123.456
    C: 123
    D: 出错
  • C

    内容

    • 0

      执行以下程序,输出结果是_____。#include<;stdio.h>;int main(){ char ch;int k;ch='a';k=65;printf("%d,%c,%d,%c",ch,ch,k,k);return 0;} A: a,a,65,65 B: 97,a,65,A C: 97,a,65,65 D: a,A,65,65

    • 1

      执行语句scanf("%6.3f" ,&a)后,输入123456可使a的值为123.456 。

    • 2

      在Windows中,下列合法的文件名是 __________ 。 A: XYZ\123:ZE B: XYZ/123.MP C: XYZ*123.EXE D: XYZ+123.DOC

    • 3

      Which statement prints the floating-point value 123.456 right justified with a field width of 10? ( ) A: System.out.printf("%d10.3", 123.456); B: System.out.printf("%10.3d", 123.456); C: System.out.printf("%f10.3", 123.456); D: System.out.printf("%10.3f", 123.456);

    • 4

      以下程序的运行结果是( )。a=123.456 b=100 c=int(a)+b print(c) A: 123.456 B: 223.456 C: 223 D: 23.456