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

Syllabus C Programming

The document outlines a training curriculum that consists of 5 modules covering topics in C programming: 1. Basics of computer hardware/software and introduction to algorithms. 2. Program basics including C syntax, operators, control flow statements. 3. Arrays, strings, linear search and bubble sort algorithms. 4. Working with functions including writing functions, passing parameters, structures and unions. 5. Pointers, files, file operations and functions for sequential and random file access.

Uploaded by

livya
Copyright
© © All Rights Reserved
Available Formats
Download as ODS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

Syllabus C Programming

The document outlines a training curriculum that consists of 5 modules covering topics in C programming: 1. Basics of computer hardware/software and introduction to algorithms. 2. Program basics including C syntax, operators, control flow statements. 3. Arrays, strings, linear search and bubble sort algorithms. 4. Working with functions including writing functions, passing parameters, structures and unions. 5. Pointers, files, file operations and functions for sequential and random file access.

Uploaded by

livya
Copyright
© © All Rights Reserved
Available Formats
Download as ODS, PDF, TXT or read online on Scribd
You are on page 1/ 4

Sheet1

Familiarization of Hardware Components of a Computer 2


Familiarization of Linux environment – How to do Programming in C with Linux 3
Familiarization of console I/O and operators in C
i) Display “Hello World”
ii) Read two numbers, add them and display theirsum
iii) Read the radius of a circle, calculate its area and display it
iv)Evaluate the arithmetic expression ((a -b / c * d + e) * (f +g)) and display its solution
Read the values of the variables from the user through console
Read 3 integer values and find the largest amoung them
Read a Natural Number and check whether the number is prime or not 6
Read a Natural Number and check whether the number is Armstrong or not 7
Read n integers, store them in an array and find their sum and average 8
Read n integers, store them in an array and search for an element in the array using an algorithm for Lin
Read n integers, store them in an array and sort the elements in the array using Bubble Sort algorithm 10
Read a string (word), store it in an array and check whether it is a palindrome word or not
Read two strings (each one ending with a $ symbol), store them in arrays and concatenate them without
Read a string (ending with a $ symbol), store it in an array and count the number of vowels, consonants
Read two input each representing the distances between two points in the Euclidean space, store these
Using structure, read and print data of n employees (Name, Employee Id and Salary) 15
Declare a union containing 5 string variables (Name, House Name, City Name, State and Pin code) each
Then, read and display the address of a person using a variable of the union
Find the factorial of a given Natural Number n usingrecursive and non recursive functions 17
Read a string (word), store it in an array and obtain its reverse by using a user defined function
Write a menu driven program for performing matrix addition, multiplication and finding the transpose
Use functions to (i) read a matrix, (ii) find the sum of two matrices, (iii) find the product of two matrices, (i
Do the following using pointers i)add two numbers ii)swap two numbers using a user defined function 20
Input and Print the elements of an array using pointers 21
Compute sum of the elements stored in an array using pointers and user defined function
Create a file and perform the following iii)Write data to the file iv)Read the data in a given file & display th
Open a text input file and count number of characters, words and lines in it; and store the results in an ou

Page 1
Sheet2

Module 1: Basics of Computer Hardware and Software (7 hours)


1.1
1.2
1.3
1.4
Module 2: Program Basics (8 hours)

2.1

2.2

2.3
Module 3: Arrays and strings: (6 hours)
3.1
3.2
3.3
Module 4: Working with functions (7 hours)
4.1
4.2
4.3
Module 5: Pointers and Files (7 hours)

5.1
5.2

5.3

Page 2
Sheet2

Module 1: Basics of Computer Hardware and Software (7 hours)


Basics of Computer Architecture:Processor, Memory, Input& Output devices
ApplicationSoftware&Systemsoftware:Compilers,interpreters,Highlevel and low levellanguages
Introduction to structured approach to programming, Flow chart
Algorithms, Pseudocode (bubble sort, linear search - algorithms and pseudocode)
Module 2: Program Basics (8 hours)
Basic structure of C program:Character set, Tokens, Identifiers in C, Variablesand Data Types , Constants, C
Operations, printf and scanf
Operators and Expressions:Expressions and Arithmetic Operators, Relationaland Logical Operators, Condit
operator, sizeof operator, Assignment operators and Bitwise Operators.Operators Precedence
Control Flow Statements:If Statement, Switch Statement, Unconditional Branchingusinggotostatement,
WhileLoop,DoWhileLoop,ForLoop,Break andContinuestatements.(Simpleprogramscoveringcontrolflow)
Module 3: Arrays and strings: (6 hours)
ArraysDeclarationandInitialization,1-DimensionalArray,2-DimensionalArray
Stringprocessing:InbuiltStringhandlingfunctions(strlen,strcpy,strcatandstrcmp, puts,gets)
Linearsearchprogram,bubblesortprogram,simpleprogramscoveringarraysandstrings
Module 4: Working with functions (7 hours)
Introductiontomodularprogramming,writingfunctions, formalparameters, actualparameters
Pass by Value, Recursion, Arrays as Function Parameters
structure, union, Storage Classes,Scope and life time of variables,simpleprograms using functions
Module 5: Pointers and Files (7 hours)
Basics of Pointer: declaring pointers, accessing data though pointers, NULL pointer,
Array access using pointers, pass by reference effect
File Operations: open, close, read, write, append
Sequentialaccessandrandomaccesstofiles:Inbuiltfilehandlingfunctions(rewind() ,fseek(), ftell(), feof(), fread(),
fwrite()),simple programs coveringpointers andfiles.

Page 3
Sheet2

2 hours
2 hours
1 hours
2 hours

2 hours

2 hours

4 hours

2 hours
2 hours
3 hours

2 hours
2 hours
3 hours

3 hours
1hours

2 hours

Page 4

You might also like