Unit 2 C Programming Flashcards
What are the three main concepts of C
How to use POINTERS
Importance of MEMORY ALLOCATION
The use of STRUCTS
To which language do these concepts transfer to?
C++
What is C++ made up of
- The low level language of C
- The standard library and the Standard Template Library
- The ability to define your own types and user object-oriented software development
When did C first appear
1972
What is declared in the standard headers?
Functions, types and macros
How do you access the standard header?
include <header.h> // this is deprecated</header.h>
#include <cheader> // this is the new valid import statement</cheader>
What is the CRT?
C Run Time Library
What is the point of including
#define CRT_SECURE_NO_WARNINGS
It tells the compiler that we do not want suggested secure warnings when using scanf();
How do you declare the main scope in C
int main() {
}
What do you return when the program exited with success
return 0;
How do you import the C standard input/output library?
include <stdio.h></stdio.h>
How many Primitive build-in types does C have?
13
What are the different types of data and how many are there per category
Integer Types - 8
Char Types - 2
Floating Point Types - 3
What are the integer types and their sizes
int 4 bytes
short int 2 Bytes
long int 4 Bytes
long long int 8 Bytes
All of these with the prefix unsigned
What are the 2 char types and their sizes
char 1 Byte
unsigned char 1 Byte