A-A+

以下程序的输出结果是【 14 】#include <stdio.h> #include <stdio.h>#include <st

2020-10-12 15:17:40 IT认证 阅读

问题详情

以下程序的输出结果是【 14 】

#include <stdio.h>

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

main()

{ char *p,*q,*r,

p=q=r=(char*)malioc(sizeof(char)*20);

strcpy(p,"attaboy,welcome!");

printf(”%c%c%c ”,p[ 11 ], q[ 3 ],r[ 4 ]);

free(p);

}

参考答案

考点: