C / C + + Course Outline
COMPUTER PROGRAMMING C / C + +
Course Outline
WHAT IS C / C + + ?
- What is C?
- Advantages of C language.
- C’ s Weaknesses
- History of C.
- Difference between C & C ++
BASIC ELEMENTS OF C/C ++ PROGRAM
1. C/C ++ Character Set.
2. C/C ++ Reserved Words.
3. User- defined Words.
4. Variables
a) Naming Variables
b) Variable Types
5. Constants.
a) Numeric Constants
i. Integer Constants
ii. Floating Point Constants.
iii. Exponential Real Constants.
b) Non-Numeric Constants.
i. Character Constants
ii. String Constants
6. C/C + + Operators.
7. C/C + + Expressions
8. C/C + + Statements.
STRUCTURE OF C/C + + PROGRAM
- Structure of C/C ++ program
- C/C ++ comments.
- C/C++ libraries
- C/C ++ Data types.
- The size of operator
- Declaring Variables & Constants.
- Assignment & Multiple Assignment operator.
- How to assign String data?
- Priority of Operations
- Types Casting Operator.
- Increment (++) & Decrement (–) operators.
- Compound assignment operators
OUTPUT STATEMENTS.
- The printf ( ) function.
- The clrser ( ) function.
- The cout, output stream.
- The putch ( ) & putchar ( ) Character output Function.
- The puts ( ) String output Function.
INPUT STATEMENTS.
- The scanf ( ) function
- The gets ( ) function.
- The getchar ( ), getch ( ) , and getch ( ) functions.
- Input using cin
MAKING DECISIONS.
- Transfer of Control Process.
- The if, if– else and nested if statements.
- Relational operators.
- Conditional Operators.
- Multiple Choice statements (switch / case / break / default).
LOOPING
1. Counters.
a. Standard Counter.
b. Accumulator Counter.
c. Multiplicative Counter.
2. Looping in C/C ++
3. The for & nested– for statement
4. The while loop.
5. The do while loop.
6. The break, continue and exit ( ) statements.
7. Preprocessor Directive.
STANDARD LIBRARY FUNCTION
1. Trigonometric Functions
Sin ( ) , cos ( ) , tan ( ) etc.
2. Arithmetic Functions.
Abs ( ), sqrt ( ), log ( ), exp ( ), ceill ( ) . floor ( ) pow ( ) pow 10 ( ), random( ) , rand ( ), etc.
3. String Functions.
Strlen ( ) strlwr ( ), strupr ( ) ,strrev ( ), strncpy ( ), strecat ( ), strncat ( ), etc.