WITH COMPLETE SOLUTIONS VERIFIED
imperative and procedural language
C is an ________ in the ALGOL tradition.
static type system
C has a ______
weakly typed.
C is often considered _______
functions (procedures, subroutines).
Code is organized into _____
passed by value
Function parameters are _______, although arrays are
passed as pointers, i.e. the address of the first item in the array.
Pass-by-reference ; pointers
_______ is simulated in C by explicitly passing _______ to the thing being referenced.
Semicolons
______ terminate statements
,curly braces
______ are used to group statements into blocks.
macro substitution,inclusion of other source files, and conditional compilation.
The C preprocessor performs • • •
Words that have a special meaning predetermined by the programming language
Reserved Word
unique names given to variables, functions...
identifiers
Reserved Word
...
Identifiers
...
represent a fixed value in the source code
literals
literals
...
library functions
I/O, string manipulation, and math are performed with _____
float Pythy(float a, float b); // on the top is considered what?
, function declaration
The function definition for Pythy
The bottom portion of code is consider what?
one-dimensional arrays of characters terminated by a null character '\0'
In C, strings are just_____
the name of the array is the pointer to the array
The firstName in the top scanf means what?
&num is the 'address of' num, or the pointer to it
The &num in the bottom scanf means what?
format specifiers
If format includes ________ (subsequences beginning with %), then the arguments following the string
are converted to characters and inserted into the string.
reads data from stdin and stores them, according to the format specifiers, into the locations pointed to
by the additional arguments.
int scanf ( const char* format, ... );
writes the string (pointed to by format) to the standard output (stdout).
int printf ( const char* format, ... );
support for the null-terminated character arrays,
Functions and macros in the language's standard library provide