[单选题]

有如下程序
#include   <stdio.h>
#include   <string.h>
main()
{
   char  a[] = "1234", *b = "ABC";
   printf("%d,%d,%d,%d ", strlen(a), sizeof(a), strlen(b), sizeof(b));
}
程序运行后的输出结果是(  )。

A.4,5,3,4

B.4,3,2,1

C.4,5,3,3

D.4,5,1,3

参考答案与解析:

相关试题

有如下程序<br />#include   <stdio.h><br />#include   <string.h><br /