单选题

程序段 chara[]=“abdcacdef”; char*p=a;intn=0; while(*p!=‘/0’){n++;p++;}结果中,n的值是()

A6

B8

C7

D9

正确答案

来源:www.examk.com

答案解析