C-programming

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

format specifiers

%d is used as a format mask to represent and integer %f prints a floating point value %c is used as a format mask to represent characters

escape sequence (\n newline \t tab)

A sequence of characters that does not represent itself when used inside a character or string, but is translated into another character or a sequence of characters *Control codes comprising combinations of a backslash followed by letters or digits which represent non printing characters.*

extended conditional

Evaluates an expression returning a value if that expression is true and different one if the expression is evaluated as false

main

Function called by the system to start a C++ Program

C-programming

High level and general purpose programming language that is ideal for developing firmware or portable applications. Developed at Bell Labs by Dennis Ritchie

machine language

Programming language that can be directly understood and obeyed by a machine without conversation

preprocessor directive

Removes comments, performs macro substitution and # includes * Source file instruction about how the file shall be processed and compiled*

if/else

Statement selecting between two alternatives based on a condition

format string

The whole statement Specifies what/how to output this string Can contain front specifiers

initialize

When a variable means to give it its first value Ex. num=s

declare

When you declare a variable, you are basically saying: there is something with this name, and it has this type

while

a loop statement presenting its condition "at the top"

variable

a place in memory that is given a name and holds a value

source code

any collection of computer instructions (possibly with comments) written using some human-readable computer language, usually as text

compiler

computer program (or a set of programs) that transforms source code written in a programming language (the source language) into another computer language (the target language) *Converts source code to machine language*

4 ways of controlling program flow: sequence conditional loop subroutine

conditional: provides branching (program can be in different directions) Sequence Loops: Provide repitition or iteration Sub- Routine: allows you to go somewhere else

assign

is to give a new value to a variable

printf/print formatted

printf= print format Standard function in the C Programming language for printf formatted output


Set pelajaran terkait

Unit #4: Regulation of Securities and Issuers

View Set

Ricci Chapter 44: Nursing Care of the Child With an Alteration in Mobility/Neuromuscular or Musculoskeletal Disorder

View Set

AP Psych Unit 1-3 Progress Check

View Set

Introduction to Information Technology Study Guide

View Set

Content Area: Health Information Privacy and Security Mock Exam

View Set

ITNW 1358 Chapter 8: TCP/IP Applications

View Set

Chapter 8: Basics of Electricity

View Set