Docsity

Introduction to Programming Concepts: Data Types, Control Flow, and Functions, Cheat Sheet of Engineering

Partial preview of the text

Download Introduction to Programming Concepts: Data Types, Control Flow, and Functions and more Cheat Sheet Engineering in PDF only on Docsity!

short - 16-bit integer long - 32 bit integer long long - 64 bit integer Double - 64-bit floating point var Printf Statement Scanf Statement

Assignment Statements are NOT equations Relational Operators

For Loops Assignment Operators

Data Types sizeof( var );

  • this function returns the size of the integer stored in var If-Else Statements The Else statements aren’t necessary - Overlapping if statements can be used instead You can use nested control statements - Boolean logic statements are what is within an if statement

Do - While - For

Switch Statement