CS110 Chapter Notes - Chapter 1: Composite Data Type, Standard Streams, Pseudocode

22 views19 pages

Document Summary

Introduction: computer science is the branch of science dealing with solving computing problems. Audio type identifier[] ={literal1, literal2,, literaln} (initialization) type identifier[n] ={literal1, literal2,, literal} (initialization: struct struct identifier { type1 identifier1; type2 identifier2; typen identifiern; }; (declaration) identifier. identifiern=literaln; (assignment: pointer type * identifier; (declaration) identifier = & identifier2; (assignment with address of identifier2, operation. Arithmetic operation: +, -, *, /, % Shorthand arithmetic operation: +=, - =, *=. Relational operation: , >=, ==,!= Bitwise operation: &, |, ^, <>,~ Shorthand bitwise operation: &=, |=, ^=, <<=, >>=,~= Sizeof: provides size of type in byte: function. Built-in functions provided by standard libraries; following are some examples (for more info, please refer to this website i. e. http://www. cplusplus. com/reference/clibrary/): stdio. h (standard input/output) If m is a string (char sequence), format is optional; format should take the following form: Specifier d or i u s c f.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents