1. Trang chủ
  2. » Công Nghệ Thông Tin

Lecture Introduction to computing systems (2/e): Chapter 13 - Yale N. Patt, Sanjay J. Patel

43 58 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 43
Dung lượng 273,96 KB

Nội dung

Chapter 13 - Control structures. The main contents of this chapter include all of the following: Conditional constructs, iteration constructs, problem solving using control structures, additional c control structures.

Chapter 13 Control Structures Copyright © The McGraw-Hill Companies, Inc Permission required for reproduction or display Control Structures Conditional • making a decision about which code to execute, based on evaluated expression • if • if-else • switch Iteration • executing code multiple times, ending based on evaluated expression • while for do-while 13ư2 Copyright â The McGraw-Hill Companies, Inc Permission required for reproduction or display If if (condition) action; condition T action Condition is a C expression, which evaluates to TRUE (non-zero) or FALSE (zero) Action is a C statement, which may be simple or compound (a block) 13­3 F Copyright © The McGraw-Hill Companies, Inc Permission required for reproduction or display Example If Statements if (x

Ngày đăng: 30/01/2020, 05:03