以下能正确定义一维数组的选项是( )。A.int num[];B.#define N 100 int num[N];C.int num[0…100];D.int N=100; int num[N];
以下能正确定义一维数组的选项是( )。
A.int num[];
B.#define N 100 int num[N];
C.int num[0…100];
D.int N=100; int num[N];
相关考题:
下列数组初始化语句哪些是正确的A.int[] nums = new int[]{0,1,2,3,4}B.int[] nums2 = {0,1,2,3,4,5}C.int[][] num_1 = {new int[]{0,1},new int[]{0,1,2},new int[]{0,1,2,3}}D.int[][] num_2 = {{0,1},{0,1,2},{0,1,2,3}}
下列数组初始化语句哪些是正确的A.int[] nums = new int[]{0,1,2,3,4};B.int[] nums2 = {0,1,2,3,4,5};C.int[][] num_1 = {new int[]{0,1},new int[]{0,1,2},new int[]{0,1,2,3}};D.int[][] num_2 = {{0,1},{0,1,2},{0,1,2,3}};
以下正确的是()。A.int *b[]={1,3,5,7,9};B.int a[5], *num[5]={a[0],a[1],a[2],a[3],a[4]};C.int a[]={1,3,5,7,9}, *num[5]={a[0],a[1],a[2],a[3],a[4]};D.int a[3][4],(*num)[4]; num[1]=a[1][3];
【多选题】下列数组初始化语句哪些是正确的?(2 分)A.int[] nums = new int[]{0,1,2,3,4};B.int[] nums2 = {0,1,2,3,4,5};C.int[][] num_1 = {new int[]{0,1},new int[]{0,1,2},new int[]{0,1,2,3}};D.int[][] num_2 = {{0,1},{0,1,2},{0,1,2,3}};
1、num是一个整型变量,和下面if逻辑相同的是____ if num>=0 and num<=100:A.if not(num<0 or num>100):B.if not(num>=0 or num<=100):C.if not(num<0 and num>100):D.if not(num>=0 andnum<=100):
【单选题】下列关于数组的定义形式,正确的是A.int[ ][ ]num=new int[ ][3];B.int[ ][ ]num=new int[3][ ];C.int[ 3] num;D.int[3][ ]num;
num是一个整型变量,和下面if逻辑相同的是____ if num>=0 and num<=100:A.if not(num<0 or num>100):B.if not(num>=0 or num<=100):C.if not(num<0 and num>100):D.if not(num>=0 andnum<=100):
【单选题】以下正确的是 。A.int *b[] = {1 ,3, 5, 7, 9} ;B.int a[5],*num[5]= { a[0], a[1],a[2], a[3],a[4]};C.int a[]={l,3,5,7,9},*num[5] = { a[0], a[l], a[2], a[3], a[4]};D.int a[3][4],(*num) [ 4]; num[l] = a[l][3];
var_dump()函数用于查看变量的值和数据类型。分析以下代码,输出结果正确的是()。 <?php $num = 1234; var_dump($num); ?>A.int(4)"1234"B.int(3)"1234"C.int(1234)D.1234