以下程序的输出结果是【 14 】#include stdio.h#include stdio.h#include stdlib.h#include string.hmain( ){ char *p,*q,*r,p=q=r=(char*)malioc( sizeof(char)*20);strcpy(p,"attaboy,welcome!");printf(”%c%c%c\n”,p[ 11 ], q[ 3 ],r[ 4 ]);free(p);}

以下程序的输出结果是【 14 】

#include <stdio.h>

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

main( )

{ char *p,*q,*r,

p=q=r=(char*)malioc( sizeof(char)*20);

strcpy(p,"attaboy,welcome!");

printf(”%c%c%c\n”,p[ 11 ], q[ 3 ],r[ 4 ]);

free(p);

}


相关考题:

急性病毒性肝炎血清酶学检验,符合的结果是()。 A.LT与ST都增高且LTB.ST增高且LTSTC.LT与ST都增高且LTSTD.LT增高且LTE.LP增高

以下程序的输出结果是【】。 include include void main 0 { char s[50]; st 以下程序的输出结果是【 】。include<iostream.h>include <string.h>void main 0 {char s[50];strcpy(s[O], "No" );strcpy(s[1], "123" );strcpy (s[2], "23456" );cout<<s;}

有以下程序includemain(){int a=5,b=lt; t=(a 有以下程序 #include<stdio.h> main() { int a=5,b=lt; t=(a<<2)|b;printf("%d\n",t); } 程序运行后的输出结果是______。A.21B.11C.6D.1

有以下程序:当执行程序时,按下列方式输入数据(从第l列开始,&lt;CR&gt;代表回车,注意:回车也是一个字符]12&lt;CR&gt;34&lt;CR&gt;则输出结果是( )。A.12B.123C.1234D.12343

有以下程序:执行时输入:3.6 2.4&lt;回车&gt;,则输出结果是( )。A.2.400000B.1.500000C.1.600000D.2.000000

有以下程序:执行时输入:6&lt;回车&gt;,则输出结果是( )。A.6B.8C.7D.5

有以下程序:执行时输入:aBeDefG&lt;回车&gt;,则输出结果是( )。A.AbCdEFgB.ABCDEFGC.BCDEFGHD.bedefgh

以下程序段中的变量已正确定义。for(i=0;i&lt;4;i++,i++)for(k=1;k&lt;3;k++);prinff(”*”);该程序段的输出结果是( )。A.*B.****C.**D.********

有以下程序段: inti,j,m=0; for(i=1;i&lt;=15;i+=4) for(j一3;j&lt;=19;j+=4)m++; printf(‘‘%d\n‘‘,m); 程序段的输出结果是( )。A.12B.15C.20D.25

若有以下程序执行时若输入:(其中&lt;Enter&gt;表示回车符)Fig flower is red.&lt;Enter&gt;则输出结果是A.wet is red.Fig Co is blue.B.wet is red.Fig floC.wet is red.The sky is blue.D.Fig flower is red.The sky is blue.