• 2022-07-22
    有以下程序: point( char木p) p+=3; main() char a[4]='1','2','3','4',*p=a; point(p); printf("%c\n",*p); 程序运行后的输出结果是
    A: A) 1
    B: B) 2
    C: C) 3
    D: D) 4
  • A
    本题目来自[网课答案]本页地址:https://www.wkda.cn/ask/eeomjtoyjotmyajo.html

    内容

    • 0

      有以下程序: main() int a=1, b=3, c=5, *p; int *p1=&a, *p2=&b, *p3=&c; *p= *p1*(*p2); printf("%d\n", *p); 执行后的输出结果是( )。 A: 1 B: 2 C: 3 D: 4

    • 1

      以下程序的输出结果是() main( ) { int i , x[3][3]={9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1} , *p=&x[1][1] ; for(i=0 ; i<4 ; i+=2) printf("%d " , p[i]) ;

    • 2

      分析以下程序的运行结果#include <;stdio.h>;main( ){ int a&#91; &#93;={1, 2, 3, 4, 5, 6};int x, y, *p;p = &amp;a&#91;0&#93;;x = *(p+2);y = *(p+4);printf(“*p=%d, x=%d, y=%d\n”, *p, x, y);}

    • 3

      下面程序段的运行结果是( )。 char *p=" 123defgh"; p+=3; printf("%d\n", strlen(strcpy(p, " ABCD") ) ); A: A) 8 B: B) 12 C: C) 4 D: D) 7

    • 4

      下面程序段的运行结果是().char*p="abcdefgh";p+=3;printf("%d\n",strlen(strcpy(p,"ABCD")));