1 / 16

C-Language : Basic Concepts

C-Language : Basic Concepts. 2013, Fall Pusan National University Ki- Joune Li. Basic Concepts. Plan Computer Programming Languages and C- Language Programming Procedure A Sample Program Programming Assignment - 1. Sequence of Instructions: Computer Program.

alka
Download Presentation

C-Language : Basic Concepts

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. C-Language : Basic Concepts 2013, Fall Pusan National University Ki-Joune Li

  2. Basic Concepts • Plan • Computer Programming Languages and C- Language • Programming Procedure • A Sample Program • Programming Assignment - 1

  3. Sequence of Instructions:Computer Program C-Language: A Computer Programming Language • Program • Communication between human and computer • Program: A sequence of instructions to a computer • Programming Language: Syntax and Grammar of Program • Cf. Natural Language Programmer Computer Instructions

  4. C-Language: A Computer Programming Language • C-Language • Developed in 1970s • Initially designed and developed for UNIX • Becomes a most popular computer programming language • In comparison with other languages • Relatively close to machine language • Easy to handle hardware and systems • Computer Engineer: Should be a native speaker of C-Language

  5. Programming Procedure • Step 1: Design • Design Structures and Algorithms of the program • Step 2: Editing and Coding • Editing a program • With an editing or programming environment • Ex. Vi, emacs in Unix, MS visual studio, etc.. • Step 3: Compile • Translation of a program to (executable) machine code • Compiler • Step 4: Execute and Debug

  6. Sample.obj Sample.c Sample.exe Results Programming Procedure Example Visual C/C++ MS-Windows Design Editing Compile Execution

  7. Block A Sample Program

  8. Variable Value 3. Sample Program

  9. Type Declaration 3. Sample Program

  10. 3. Sample Program Statement

  11. 3. Sample Program Control Flow

  12. 3. Sample Program Condition

  13. 3. Sample Program Assignment

  14. Operator 3. Sample Program Operator precedence : ( ) > *, / > …

  15. 3. Sample Program Input/Output

  16. Basic Concepts of Sample Program • Block : { … } • Value, Variable • Type Declaration : integer, float, double, etc. • Statement and Semi-colon (“;”) • Control Flow : if .. else if … else • Condition • Assignment (“=“) • Operator, Operator Precedence • Function • Input and Output with printf and scanf

More Related