Professional Documents
Culture Documents
MS-FAQs, Intro To Data Structure
MS-FAQs, Intro To Data Structure
FAQS
Step 1:
Step 2:
Step 3:
Data structure
Learning the arrangements of code
Knowing the different types methods on how to organize values/elements
C
Developed by Dennis Richie and Brian Kernighan
Developed a Bell Telephone Laboratory/Bell Labs
Formerly called as K&R Programming Language
And was inspired by the B Language developed by Ken Thompson
Interpreter
Checks code at run time
Interprets code statement by statement
Used by web scripting language like JS (JavaScript), PHP,
Compiler
Checks code at compile time
Packages the program code and checks for errors
Used by C, and Pascal
Assemblers
Translates assembly language
Pre-processing
Processes include-files or pre-processor commands to identify keywords
Compilation
The source code is checked for errors and produces an assembly language
Assembly
The generated assembly language is read to produce an object file
Linking
The final stage of processing
Produces the executable file
Semicolons
Terminates a statement
Identifiers
Variable names
Keywords
Reserved words
Statements
Line of code that changes a program’s state
Data Types
char
int
float
double
void
const
Float
- IEEE (Institute of Electrical and Electronics Engineers) for floating point numbers
- Single precision
Double
- IEEE (Institute of Electrical and Electronics Engineers) for floating point numbers
- Double precision
Parts of C program
1. Preprocessor Commands
2. Variables
3. Statements & Expressions
4. Function
5. Comments
Pre-processor Commands
- The first line processed by the compiler to identify keywords and functions.
Variables
- Contains stored value
Expressions
- Group of letters, numbers or alphanumeric combinations that evaluates to a value
Function
- Performs a specific action
Pre-defined function
- These are pre-installed functions that are recognized by the compiler
User-defined function
- Contains a series of statements that is use to calculate an input to produce results