以下程序的输出结果是( )。#include<stdi

以下程序的输出结果是( )。

#include<stdio.h>
f(char *s)
{
    char *p=s;
    while(*p!='\0')
        p++;
    return(p-s);
}
void main()
{
    printf("%d\n",f("ABCDEF"));
}
答案
B

题目信息

题号:1447
题型:单选题
难度:普通