What are the subscript ranges of the following arrays?(a)int array1[6];from to(b)float array2[] = { 1.3, 2.9, 11.8, 0 } ;from to(提示:数组下标是从0开始的,因此上限为下标界-1)
What is the output from the following program segment?int i, c1 = 0, c2 = 0 ;int a[] = { 6,7,3, 13, 11, 5, 1, 15, 9, 4 } ;for ( i = 0; i < 10; i++ ){if( i%2 == 0 )c1++ ;if ( a[i]%2 == 0 )c2++ ;}printf( "c1=%d c2=%d\n", c1, c2 ) ;(提示:仔细分析程序功能,if( i%2 == 0 )用来判断下标的是否为偶数。a[i]%2 == 0 用来判断数组里面保存的内容是否为偶数)