TAILIEUCHUNG - Lecture Elementary programming with C - Session 1: Basics of C

After you have mastered the material in this chapter, you will be able to: Differentiate between Command, Program and Software; explain the beginning of C; explain when and why is C used; discuss the C program structure; discuss algorithms; draw flowcharts; list the symbols used in flowcharts. | Basics of C Session 1 Elementary Programming with C/Session 1/ of 26 Objectives Differentiate between Command, Program and Software Explain the beginning of C Explain when and why is C used Discuss the C program structure Discuss algorithms Draw flowcharts List the symbols used in flowcharts Elementary Programming with C/Session 1/ of 26 Software, Program and Command Software Program 2 Program 1 Commands Commands Commands Elementary Programming with C/Session 1/ of 26 The Beginning of C C – Dennis Ritchie B – Ken Thompson BPCL – Martin Richards Elementary Programming with C/Session 1/ of 26 Application Areas Of C C was initially used for systems programming A system program forms a portion of the operating system of the computer or its support utilities Operating Systems, Interpreters, Editors, Assembly programs are usually called system programs The UNIX operating system was developed using C There are C compilers available for almost all types of PC’s Elementary Programming with C/Session 1/ of 26 Middle Level Language High Level Language Assembly Language C Elementary Programming with C/Session 1/ of 26 Structured Language C allows compartmentalization of code and data It refers to the ability to section off and hide all information and instructions, necessary to perform a specific task, from the rest of the program Code can be compartmentalized in C by using functions or code blocks. Elementary Programming with C/Session 1/ of 26 About C C has 32 keywords These keywords combined with a formal syntax form a C programming language Rules to be followed for all programs written in C: All keywords are lowercased C is case sensitive, do while is different from DO WHILE Keywords cannot be used as a variable or function name main() { /* This is a sample Program*/ int i,j; i=100; j=200; : } Elementary Programming with C/Session 1/ of 26 The C Program Structure-1 main() Elementary Programming with C/Session 1/ of 26 .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.