4G curriculum (older)
4331105 · Semester 3 · 4G scheme
Programming In C
Notes and solutions following the Gujarat Technological University (GTU) syllabus for 4331105. Independent material — not issued by the university.
Materials
Complete Book
The whole syllabus, unit by unit, written for the exam.
Complete Book
158 pages
Premium Preview · 43 pages
Problem Solver
Step-by-step solutions to typical problems.
Problem Solver
40 pages
Premium Preview · 5 pages
PYQ Solutions
Past university papers, fully solved.
Solved past papers — detailed answers
345 pages · English + ગુજરાતી
Premium Preview · 39 pagesSolved past papers — short answers
221 pages · English + ગુજરાતી
Premium Preview · 4 pages
Syllabus units
Unit 1: Basics of C4 h · 14 marks
- Definition and importance of flowchart
- Symbols of flowchart, Flowchart structure
- Developing and writing algorithm
- General structure of 'C' program and standard directories
- Write a simple 'C' program
- Character set, 'C' tokens
- Keywords and identifiers
- Constants, data types in 'C'
- Variables, declaration and initialization of variables
Unit 2: Operators, Expressions and Input/Output Functions5 h · 16 marks
- Arithmetic operators, relational operators
- Logical operators, assignment operators
- Increment and decrement operators
- Conditional operators
- Operator precedence and their associativity
- Evaluation of arithmetic and logical expressions
- I/O Functions: scanf(), printf(), getch(), putch(), gets(),puts()
- Programming exercises based on arithmetic and logical expressions
Unit 3: Decision statements and Control statements8 h · 20 marks
- Conditional branching statements
- Unconditional branching statement
- Programming based on decision making
- While statement
- Do and Do-while statement
- For statement
- Break and continue statements
Unit 4: Arrays and Pointers6 h · 12 marks
- Introduction to an Array
- One dimensional arrays of int, float & characters: Declaration, initialization and accessing
- Two dimensional array of int: Declaration and initialization
- Programming exercises based on One Dimensional array
- Introduction to Pointers
- Declaration and initialization of Pointers
Unit 5: Functions and Structures5 h · 8 marks
- Introduction to Functions
- Types of Functions: Library Functions and user defined Functions
- Library Functions: clrscr(), abs(), sqrt(), og(), pow(), int(), isdigit(), isalpha(), toupper(), tolower(), strlen(), strcat(), strcpy, strcmp
- Introduction to Structures
- Declaration, Initialization and accessing of Structures
About this course
C forms the basics of C++, C#, Visual C/C++ etc. which is current requirement in the information technology (IT) and computer science (CS). It is one of the most commonly used programming language in industry by engineers. It is a middle level language which combines features of both the high level and low level language. It is widely used to develop system programming, operating systems, embedded systems. Also, C is used for creating computer applications that are used in writing embedded software/firmware for various micro-controllers based products in electronics, industrial and communications. C is also used in developing verification software, test code and simulators for various applications and hardware products. It is therefore very important for electronic engineers to develop mastery over C language.