阿摩線上測驗
登入
首頁
>
學士後西醫◆計算機概論與程式設計
>
111年 - 111 國立中山大學_學士後醫學系招生考試:計算機概論與程式設計#113521
> 試題詳解
77. Which of the following gives the number of elements in the array int a []?
(A) sizeof(a)
(B) sizeof(*a)
(C) size(a[])
(D) sizeof(*a)/sizeof(int)
(E) sizeof(a)/sizeof(int)
答案:
登入後查看
統計:
A(1), B(1), C(0), D(0), E(5) #3081407
詳解 (共 1 筆)
MoAI - 您的AI助手
B1 · 2025/11/14
#7092065
1. 題目解析 題目要求找出一個整數陣...
(共 991 字,隱藏中)
前往觀看
0
0
其他試題
73. What expression should be in "AAA"? (A) x (B) x->next (C) y->next (D) first (E) x->next->next
#3081403
74. What expression should be in "BBB"? (A) y(B) x->next (C) y->next (D) first (E) *pfirst
#3081404
75. What expression should be in "Ccc"? (A) x (B) x->next (C) y->next (D) first (E) *pfirst
#3081405
76. What will be the declaration of the following requirements?(i.) An array of 10 pointers to integer named a.(ii.) A pointer of 10 integers named p. (A) a[10]; *p[10]; (B)**a[10]; *p[10]; (C) *a[10]; (*p)[10]; (D) *a[10] ; **p[10]; (E) (*a)[10]; *p[10];
#3081406
78. Consider the following function and code segment.After the call to me (j , k) ; what are the values of j and k? (A) j = 5, k = 6 ; (B) j = 10, k = 11; (C) j = 5, k = 11; (D) j = 10, k = 6 ; (E) j = 10, k = 18;
#3081408
79. Assume this code fragment is embedded in an otherwise correct and complete program. What should be the output from this code segment? (A)5(B)4(C)6(D) 0 (E) The variable i is undefined in this scope
#3081409
80. Consider the following C code fragment: int x=38; int *p=&x;Which of the following code will output 38? (A) printf("%d" , (B) printf("%d" , *&p) ; (C) printf("%d" , *&x) ; (D) printf("%d" , &*x); (E) None of the above
#3081410
81. Which of the following C statements is incorrect? (A) typedef enum {Spade, Heart, Diamond, Club }; (B) typedef enum {Spade, Heart, Diamond, Club }Suit; (C) enum{Spade, Heart, Diamond, Club } suit; (D) enum suit {Spade, Heart, Diamond, Club }; (E) None of the above
#3081411
82. Suppose the output of the following C code fragment is 0xffff00003a04: int x=38; int *p=&x;printf("%p", p);What is the output of 「printf("%p" , p+3) ;」 ? (A) 0xffff00003a04 (B)0xffff00003a07 (C) 0xffff00003a10 (D) 0xffff00003a16 (E) None of the above
#3081412
83. If the line: friend class A;appears in class B, and the line:friend class B;appears in class C, then: (A) Class A is a friend of class C. (B) Class A can access private variables of class B. (C) Class C can access private variables of class B. (D) Class C can call class A's private member functions. (E) Class B can access class A's private variables.
#3081413