【单选题】【消耗次数:1】
元素类型为int的数组a[10]共占用( )字节的存储空间。
10
20
40
80
参考答案:
复制
纠错
相关题目
【单选题】 元素类型为int的数组a[10]共占用( )字节的存储空间。
①  10
②  20
③  40
④  80
【单选题】 元素类型为int的数组a[10]共占用多少字节存储空间?
①  10
②  20
③  40
④  80
【单选题】 一个指针类型的变量,占用多少字节存储空间?
①  2
②  4
③  8
④  16
【单选题】 一个指针类型的对象占用内存中( )个字节的存储空间。
①  2
②  4
③  8
④  16
【单选题】 一个指针类型的对象占用内存中( )个字节的存储空间。
①  2
②  4
③  8
④  16
【单选题】 使用“typedef int CC[4][6];”语句之后,再使用“CC a;”语句,则a所占用的存储空间的字节数为( )。
①  10
②  24
③  48
④  96
【单选题】 使用“typedef int CC[4][6];”语句之后,再使用“CC a;”语句,则a所占用的存储空间的字节数为( )。
①  10
②  24
③  48
④  96
【单选题】 已知二维数组A10×10中,元素a20的地址为560,每个元素占4个字节,则元素a10的地址为( )。
①  520
②  522
③  524
④  518
【单选题】 下列( )固定占用10个字节的空间。
①  varchar(10)
②  char(10)
③  nchar(10)
④  nvarchar(10)
【判断题】 字符串“string”占用7字节的存储空间。
①  正确
②  错误
随机题目
【判断题】 指针变量可指向结构体变量。
①  正确
②  错误
【判断题】 如果p是一个指向struct Student类型对象的指针变量,那么执行p++时,p的增量是结构体struct Student的长度。
①  正确
②  错误
【判断题】 (p++)-num的计算过程是先求得p-num的值,然后再使p自加1。
①  正确
②  错误
【判断题】 指针变量的基类型必须与结构体变量的类型相同()。
①  正确
②  错误
【判断题】 可以在声明类型的同时定义变量。
①  正确
②  错误
【多选题】 以下说法正确的是(  )。#include stdio.hint main(){struct student // 声明结构体类型struct student {int num;char name[20];float score;}student1;
①  student是变量名
②  student是类型名
③  student1是变量名
④  student1类型名
【单选题】 struct student{long int num;char name[20];char sex;char addr[20];}______。以下能够正确定义的是
①  a={Li Lin,10101,M,123 Beijing Road
②  a={10101,Li Lin,123 Beijing Road,M
③  a={10101,Li Lin,M,123 Beijing Road
④  a={123 Beijing Road,Li Lin,M,10101};
【单选题】 以下程序的运行结果是(  )。#include stdio.hmain(){struct date{ int year,month,day;}today;printf(%d\n,sizeof(today));}
①  6
②  8
③  10
④  12
【简答题】 通过变量的地址进行的访问,称为[填空1]访问。
【简答题】 #include stdio.hint main(){void swap(int *p1,int *p2);int a,b;int*pointer_1,*pointer_2;printf(please enter a and b:scanf(%d,%d,a,pointer_1=pointer_2=if(ab) swap(pointer_1,pointer_2);printf(%d,%d\n,a,b);return 0;} void swap(int *p1,int *p2){int temp;temp=*p1;*p1=*p2;*p2=temp;}若输入5,9,则输出为[填空1]。