通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
有如下程序
#include <stdio.h> main() { int i, *ptr; int array[5] = {5,3,1}; for (ptr=array, i=0; i<5; i++, ptr++) { if (*ptr == 0) putchar('X'); else putchar('A' + *ptr); } printf("\n"); }
程序运行后的输出结果是( )。