百度试题 结果1 题目7.下面程序段的输出结果是()。char c[]="\t\v\\\Owill\n";printf("d, td", strlen(c) , sizeof(c)); A. 2,14 B. 9,14 C. 3,10 D. 6,10 相关知识点: 试题来源: 解析 C 反馈 收藏
我有道C语言题目~有兴趣请做做~以下程序的输出结果是( ).main(){ char st[20]= “hello\0\t\\\”;printf(%d %d \n”,strlen(st),sizeof(st));A) 9 9 B) 5 20 C) 13 20 D) 20 20
设int 型和long型变量均 占4个字节。运行下列程序,其输出结果为 。 typedef union{ long a[2]; int b; char c[6]; }T; T our; main() { printf("%d",sizeof(our)); } [填空(1)] 答案: 8 点击查看答案 手机看题 你可能感兴趣的试题 不定项选择 Soren’s mother thinks of the puppy...
写出以下程序运行后的输出结果。#include"stdio.h"#include"string.h"intmain(){charst[20]={"hello\0\t\\\""};printf("%d,%d",strlen(st),sizeof(st));return0;} 答案:第一空: 5,20;5,20 你可能感兴趣的试题 问答题 4月份生产合格品25件,料废品5件,加工失误产生废品2件,计价单价为4元,应付...