What is C

¡Supera tus tareas y exámenes ahora con Quizwiz!

Brian Kernighan and Dennis Ritchie

Who wrote C language

Format Specifier

a sequence passed as the formatting data as by statement. tells printf() where to put a value in a string and what format to use in printing the value.

Sequence

a series of actions that is completed in a specific order. Action 1 is performed, then Action 2, then Action 3, etc., until all of the actions in the sequence have been carried out.

Selection

efers to a binary decision based on some condition. If the condition is true, one of the two branches is explored; if the condition is false, the other alternative is taken

float data type

used to store fractional numbers (real numbers) with 6 digits of precision.

Data Type

A program usually contains different types of data types (integer, float, character etc.) and need to store the values being used in the program. C language is rich of data types. A C programmer has to employ proper data type as per his requirement.

Programming Language

A vocabulary and set of grammatical rules for instructing a Computer to perform specific tasks. Each language has a unique set of keywords (words that it understands) and a special syntax for organizing program instructions.

Aggregate data types

Arrays come under this category Arrays can contain collection of int or float or char or double data

Headers Declaration (Global Declaration) Main Function Body of the Program Structure of Body a. Declaration (Local Declaration) b. Definition c. Usage d. Output Statement

C structure

Character Type

Character type variable can hold a single character.

char int short int Long int float double

Examples of Data types

IDE

It is a screen display with pull down menus. We use menu selections to invoke all the operations necessary to develop our program.

Compiler

It is the part of IDE, that translates our source file into machine language.

Keyword

Keywords are the words whose meaning has already been explained to the C compiler

int, float, double, char

Primitive data types

C language

This was to be the language that UNIX was written in to become the first "portable" language

Identifiers

The names that are used to reference variables, function, labels, and other user-defined objects

Syntax(form)

The syntax of a language describes the possible combinations of symbols that form a correct program.

Integer types

are whole numbers with a range of values, range of values are machine dependent. Generally an integer occupies 2 bytes memory space.

Variables

data that will keep on changing

double

same as float but with longer precision and takes double space (8 bytes) than float.


Conjuntos de estudio relacionados

ATI Injections and NG Medications

View Set

INS 22 Assignment 3: Personal Auto Policy: Liability, Med Pay, and UM Coverage

View Set

Unit 6: Additional Restoration Scripture

View Set

EDS500 Chapter 9 Learners with ASD

View Set

PPPTest #2 Lewis - Chapter 24: Burns

View Set

Unit 3: Long Term and Short Term Sources of Funds

View Set