38 下列選項中為有關 BASIC 與 C 程式語言之比較,何者正確?
(A) BASIC 與 C 程式語言編寫之程式中,資料變數(Variable)之名稱皆必須經宣告後才可使用
(B) BASIC 與 C 程式語言皆提供相同之資料型態(Data type)
(C) BASIC 與 C 程式語言皆提供 goto 敘述(Statement)
(D) BASIC 與 C 程式語言皆使用相同之算術運算符號(Arithmetic operator)
答案:登入後查看
統計: A(96), B(36), C(84), D(61), E(0) #174414
統計: A(96), B(36), C(84), D(61), E(0) #174414
詳解 (共 5 筆)
#787205
A goto statement in C programming language provides an unconditional jump from the goto to a labeled statement in the same function.
NOTE: Use of goto statement is highly discouraged in any programming language because it makes difficult to trace the control flow of a program, making the program hard to understand and hard to modify. Any program that uses a goto can be rewritten so that it doesn't need the goto.
Syntax:
The syntax for a goto statement in C is as follows:
C語言也有gotogoto label;... label: statement;考選部答案是 C
1
0
#407699
應該是D吧 C不太對
C語言提供數種如while、for、switch等的結構化敘述來取代goto 敘述
C語言提供數種如while、for、switch等的結構化敘述來取代goto 敘述
1
0