Home
Diploma Practice C Online People
Certificate Contact Us

Syllabus for C Programming Linux environment

0. Linux Environment
Understanding Linux command shell environment
Basic Linux commands
Creating text files and C program files using text editors like nano and vi
Compiling a C program and generating executable file
Executing the executable file
1. Representing numbers
Binary numbers
Octal numbers
Decimal numbers
Hexadecimal numbers
Conversion of numbers from one base to other
Representing negative numbers in ones compliment and twos compliment

Example questions:

a) Write hex number 0x1234 in binary format.
b) Write the binary number 1011010111001010 in hex format.
c) Write decimal number 36 in binary format.
d) Write -12 in binary format using two's complement.
e) What is the maximum unsigned value that can be stored in 6 bits.
f) What is the minimum and maximum values that can be stored in 6 bits
2. ASCII codes for numbers, letters and some control characters
Example questions:

a) What is the ASCII code for character 'A' ?
b) What is the ASCII code for digit '5' ?
c) What is the ASCII code for carriage return ?
3. Various Types of variables possible in C and their sizes in 32 bit operating systems
i) char, short, int, long, float, double
ii) Signed and Unsigned variables
iii) Boolean variables

Example questions:
a) What is the size of float variable?
b) What operator do you use to find the size of an variable?
c) What is the suitable types for storing boolean values?
d) What is the maximum value that can be stored in a signed     char?
4. Understanding the following Arithmetic operators and using them in arithmetic expressions. Understanding the difference between Binary operator and Unary operator.
+    -    /    *    %    --    ++

Example questions:
a) Which of the above operators are unary operators?
b) What is the value of expression 10 % 3 ?
5. Logical opetators and using them in logical expressions.
&&    ||    !

Example questions:
i) What are the values of x,y,z in the following program.

    int a = 20;
    int b = 10;
    int x,y,z;

    x = a && b;
    y = ! x ;
    z = y || b;
6. Conditional operators and using them in conditional expressions
==    !=    >    <    >=    <=
7. Bitwise operators and using them in the expressions
&    |    ^    ~    <<    >>
8. Precedence rules

9. Statements
Assignment statements
Single statement and Block statements
10. IF Statements
If Statement
If-Else Statement
If-Else If-Else If-Else Statement
Switch Statement
11. Loop Statements
For Statement
While Statement
Do-While Statement
12. Break and Continue Statements

13. Functions
Function prototype and its use
Function definition
Functions that will not take any arguments
Functions that will not return any thing
Functions that take single arguments
Functions that take multiple arguments

Pass by value and Pass by reference for function arguments
14. Pointers
Declaring various types of pointer variables.
Initializing the pointer variable with address of other variables
Initializing the pointer variable with address given by malloc().

Dereferencing a pointer (accessing the contents pointed by pointer)

Pointer arithmetic
Incrementing pointers
Decrementing pointers
Adding integer to pointer
Subtracting integer from pointer
Declaring Function Pointers
Initializing the function pointer with function address
Invoking the function by using function pointer

Use of pointers
To achieve pass by reference effect for function arguments
Dynamic memory usage
Linked Lists
15. Arrays
Declaring various types of arrays
Accessing elements of an array in for loop
Maximum index of an array
Difference between array name and pointer variable
16. Structures
Declaring the template for a structure
Declaring the structure variable
Initializing the fields of a structure
Printing the fields of a structure
Declaring pointer variable to structure
Initializing structure pointers with malloc() function
Accessing fields of a structure by using structure pointer
17. Unions
Difference between structures and Unions
18. Scope of variables and functions
Function scope
File scope
Program scope
Difference between Definition and declaration of variables
Use of 'extern' keyword
Use of 'static' keyword for local variables
Use of 'static' keyword for global variables
Use of 'static' keyword for functions
19. Writing functions and testing those functions
Students should be able to write any function according to the given description. Lot of students used to write only main() function. They are not comfortable in writing a separate function and calling that function from main function. But important skill is to write to given function with given description. One should be able to call this function from main() function and should be able to test that function.
20. Understanding and using following C library functions
Standard Input/Output Functions
putchar(); puts(); printf(); getchar(); gets(); scanf();
String Functions
strlen(); strcpy(); strncpy(); strcat(); strncat(); strcmp(); strncmp(); memcpy(); memcmp();
Character class testing and Conversion functions
isalpha(); isupper(); islower(); isdigit(); isalnum(); isspace(); toupper(); tolower();
Storage management functions
malloc(); calloc(); free();
Math functions
sqrt(); pow(); sin(); cos(); tan();





#401, Sai Sushma Homes, 23/A, S.R. Nagar Main Road, Hyderabad-500038, India.
Ph: +91-40-48508764, 7702028989, depik.help@gmail.com