• 2022-06-09
    以下程序段执行后输出的结果是( )。char str[]=ABCD,*p=str;printf(%d\n,*(p+4));
    A: 不确定的值
    B: 字符'D'的地址
    C: 68
    D: 0
  • D

    内容

    • 0

      阅读下列程序,程序的输出结果是( )#include int main() { char str[]="ABCD",*p=str; printf("%d\n",*(p+3)); } A: 68 B: 0 C: 字符'D'的地址 D: 字符'D'

    • 1

      下面程序段的输出结果是( )。 char str[]="ABC",*p=str; Printf("%d\n",*(p+3)); A: A) 67 B) 0 C) 字符'C'的地址 D) 字符'C'

    • 2

      下面程序段的输出结果是( )。 char str[]="ABC",*p=str; Printf("%d\n",*(p+3)); A: 67 B: 0 C: 字符'C'的地址 D: 字符'C'

    • 3

      请读程序段 char str[]="ABCD",*p=str; printf("%d",*(p+1)); 上面程序段的输出结果是_______ . A: 字符'B'的地址 B: A C: 66 D: B

    • 4

      下列程序段的运行结果是( )。char str[ ]="abc", *p=str;printf("%d\n",(p+2)); A: 67 B: 0 C: 字符'c'的地址 D: 字符'c'