0% found this document useful (0 votes)
5 views

c Programming

The document outlines a 10-day training plan focused on C programming for software developers, covering topics such as GCC command options, data types, control structures, functions, arrays, pointers, and structures. It specifies hardware and software requirements, including a dual-core processor, Linux OS, and Oracle VirtualBox. The training includes practical exercises and a final coding assessment.

Uploaded by

Amit Balchander
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

c Programming

The document outlines a 10-day training plan focused on C programming for software developers, covering topics such as GCC command options, data types, control structures, functions, arrays, pointers, and structures. It specifies hardware and software requirements, including a dual-core processor, Linux OS, and Oracle VirtualBox. The training includes practical exercises and a final coding assessment.

Uploaded by

Amit Balchander
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Training Plan

Training Topic C programming


Training Duration 10 Days
Target Audience 1) Software Developers: Developers who work on system-level programming or need to unders
operating system
This training for their
introduces applications.
Participants to Basic of C Programming.
Objective
Participants will learn how to use gcc compiler options and usage.
Hardware Requirements
Processor: Minimum dual-core processor (Intel or AMD)
RAM: At least 4 GB (8 GB recommended for better performance)
Storage: Minimum 20 GB free disk space
HW & SW requirements Graphics: Integrated or dedicated graphics card
Network: Ethernet or Wi-Fi capability

Software Requirements
Operating System: All systems should have a Linux distribution installed.
Virtualization Software: Oracle VirtualBox installed.

Duration

Module Objectives
GCC Command Options
Compilation Process cycle
gcc compiler and options(-E, -s, -c, -o, )
gcc Warning options (-Wall)
Compiling the Program
Running the Program
Options Controlling the Output 45 mins
Options to Request or Suppress Warnings
Options for Debugging Your Program or GCC
Passing Options to the Assembler
Options for Linking
Specifying Target Machine and Compiler Version
Options for Code Generation Conventions
Day - 1
Environment Variables Affecting GCC

Introduction to C Programming
Basics of Programming language
Lexical Elements
Data types and Variables .
Local Variables
Global Variables 100 mins
Constants:
Literal constants and Symbolic constants
TypeQualifiers and Modifiers
const
volatile
Storage Class Specifiers
auto
extern
static Variables
register Variables 1 Hr
External Variable Scope
Static Versus Automatic Variables
Extern versus Static Variables
Memory Layout of C - Program.

Day - 2 Expressions and Operators


Expressions and Operators
Assignment Statement
Arithmetic operators
Type conversion
Compound assignment operators 52 Mins
Relational operators
Logical Connectors
Evaluating relational expressions.
Bitwise operators
The Precedence of Operators
The Associativity

Program Control structures


The if else Statement
The switch Statement
Loops
Day - 3 The for Loop 1 Hr
The while Loop
The do while Loop
The break Statement
The continue Statement

Functions
Scope of Function Variables
Function returning type
Day - 4 Function call by value 45 mins
Modifying Function Arguments
Recursive Functions
Functions in multiple files

Arrays in C
One dimensional Array
Two dimensional Array 30 mins
30 mins
Multi dimensional Array
Passing array to a function

Streams in C
Day - 5 What Exactly Is Program Input/Output?
What Is a Stream?
Text Versus Binary Streams
Predefined Streams 45 mins
C's Stream Functions
Character Output with putchar()
Using puts() and fputs() for String Output
Using printf() and sprintf() for Formatted Output

Pointers
pointers and memory
pointer operations
The Computer's Memory
Creating a Pointer
Pointers and Simple Variables
Day - 6 1.5 hrs
Initializing Pointers
Using Pointers
Pointers and variable Types
Pointers and Arrays
Pointer Arithmetic
Pointer Cautions

Pointers-II
Pointers to Pointers
Pointers and Multidimensional Arrays
Arrays of Pointers
Pointers to Functions 1.5 Hrs
Passing arguments to main() function
Type void Pointers
Functions That Have Variable Numbers of Arguments
Functions That Return a Pointer

Pointers-III
Working with Memory
Day - 7
Pointer assignment
Type Conversions
Automatic Type Conversions
Explicit Conversions Using Typecasts
Pointer arithmetic
1 Hr
Pointer comparisons
Allocating Memory Storage Space dynamically
1 Hr

The malloc() Function


The calloc() Function
The realloc() Function
The free() Function
Manipulating Memory Blocks

Structures unions and enumerations


Defining a Structure
Accessing Structure Members
Structure assignment
Day - 8 typedef, function pointers and structures 1 Hr
Structures as Function Arguments
Function and structure
Array and structure
Pointers and structures

Structures unions and enumerations


Structure padding and packing
Bit Fields in Structures
1.5 Hrs
Defining a Union
Accessing Members of a Union
enumerations

Day - 9
Pre – processors
#define, #error, #include ,
#if, #else,#elif,#endif,#ifdef,#endef,
#pragma 1 Hr
Macro functions,
Inline functions
Macro vs Inline( With respect to optimization)
Day - 10 Coding Assessment and Viva
ogramming or need to understand the underlying

talled.

Day wise
breakup exercise files

You might also like