以下程序的执行结果是( )。 #include typedef struct{ int y[4]; char z[8]; } MYTYPE; void main(){ MYTYPE a = { {2,3,5,6},Tom}; puts(a.z); }
设有数组定义: char arr[]=China
设有数组定义:char arr[]=\China
下列程序的输出结果是 main() { char a[10]={9,8,7,6,5,4,3,2,1,0},*p=a+5; printf(\%d\,*--p); }
以下程序的运行结果是______。#include main(){struct s{int n;int *m;} *p;int d[5]={10,20,30,40,50};struct s arr[5]={100,&d[0],200,&d[1],300,&d[2],400, &d[3],500,&d[4]};p=arr;printf(\%d,\,++p->n);printf(\%d,\,(++p)->n);printf(\%d\\n\,++(*p->m));}
有以下程序 #include void main ( ) { chars[]=\012xy\\08s34f4w2
int[] arr={1,2,3,4,5,6,7,8},则元素arr[6]的值为___。
有以下程序: main() { unsigned char a,b; a=4 | 3; b=4 & 3; printf("%d %d\n",a,b); } 执行后输出结果是()。
有以下程序: main() {unsigned char a=2,b=4,c=5,d; d=a|b;d&=c;printf(“%d\n",D);} 程序运行后的输出结果是()。
下述程序执行的输出结果是()。 include<stdio.h> main() {char a[2][4]; , strcpy(
已知数组arr的定义如下:int arr[5]={1,2,3,4,5 }、下列语句中输出结果不是2的是
【填空题】下面程序的运行结果是_______。 include <stdio.h> int main() { int arr[10],i, k=0; for(i=0; i<10; i++) arr[i]=i; for(i=1; i<4; i++) k+=arr[i]+i; printf("%dn", k); return 0; }
以下程序的输出结果是______。 main() { union { int i[2]; long j; char m[4]; }r,*s=&r; s-
下列程序的输出结果是______。main(){char a[10]={9,8,7,6,5,4,3,2,1,0},*p=a+5;printf("%d",*--p
(专基)阅读下面程序如果执行程序后输入的值是1 2 3 4 5 则结果是()#include "stdio.h"void main(){int arr【5】,i,sum=0; for(i=0;i<5;i++){scanf("%d",&arr【i】); } for(i=0;i<5;i++){sum=sum+arr【i】;}printf("sum=%d",sum);}
当执行下面的程序时,如果输入ABC,则输出结罘是()。 include<stdio.h> include<string.h> main() { char ss[10]="1,2,3,4,5": gets(ss);strcat(ss,"6789");printf("%s\n",ss); }
下列程序的输出结果是 ______。main(){char a[10]-(9,8,7,6,5,4,3,2,1,0},*p=a+5;printf("%d",*--
有以下程序:point(char *p){ p+=3;}main(){char b[4]={'a','b','c','d'}, *p=b; point(p); print
若有数组 char arr()={'a','b','c','d','e'};则arr【3】的值不是
执行下面程序输出的x值是()include "stdio.h"main(){int x,y,i;int arr【5】 = {1,2,3,4,5};x=arr【0】;y=0;for(i = 0; i <5; i++ ){if(x < arr【i】){x = arr【i】;y=i;}}}
阅读下面的程序找出哪一行出错include “stdio.h”void main(){ char ch; 1 printf(“请输入一个字符”); 2 ch=getchar(); 3 printf(“刚刚输入的字符为”); 4 printf(“%f”,ch);}
2、下列程序的输出结果是() main() { char a[10]={9,8,7,6,5,4,3,2,1,0},*p=a+5; printf("%d",*--p); }
1、下列程序执行后的输出结果是()。include <stdio.h> include <string.h> int main() { char arr[2][4]; strcpy(arr[0],"you"); strcpy(arr[1],"me"); strcat(arr[0],arr[1]); printf("%s\n", arr[0]); return 0; }
下述程序中,已知变量a的存储地址为0x200,c的地址为0x204,则k[3]的地址为多少? int a = 68, b = 70, c = 79; char k[6] = {1, 2, 3, 4, 5, 6}; int main (void) { int d; k[2] = 20; d = fun(a, b); return (d+k[2]); }