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

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

Xem thêm:

Mục lục

    If’s Can Be Nested

    Generating Code for If Statement

    Generating Code for If-Else

    Matching Else with If

    Chaining If’s and Else’s

    Generating Code for While

    Generating Code for For

    Problem Solving in C

    Pi: Code for Evaluate Terms

    Problem 2: Finding Prime Numbers

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN