FAEN 112 — C Programming
Materials Science and Engineering · University of Ghana
History of the C language. Structure of the C Program. Variables Declarations: Global variables, type and range of variables, declaration of variables, scope of variables, reading and printing of variables. Constants Declarations. The C Operators: Arithmetic, Relational, Logical, and order of operation precedence. Conditional Instructions. Looping and Iterations. Arrays and Strings: Single and multi-dimensional. Functions: VOID function, Functions and Arrays, Function prototyping. Data Types: Unions, type casting, enumerated types, static variables. Pointers: pointers and variable, pointers and functions, pointers and arrays, arrays of pointers, multi-dimensional arrays and pointers, static initialization of pointer arrays, pointers and structures, common pointer pitfalls. Dynamic Memory Allocation and Dynamic Structures: MALLOC and SIZEOF and FREE, CALLOC and REALLOC, Linked Lists, random number generation, sample full C program.
- Credits
- 2
- Level
- Level 100
- Semester
- Semester Two
Other courses on this programme
- MTEN 401 — Composite Design And Fabrication
- MTEN 407 — Engineering Ceramics II
- MTEN 409 — Glasses, Cements & Concretes
- MTEN 411 — Physical Metallurgy II
- MTEN 415 — Biodegradable Polymer & Fibrous Materials
- MTEN 417 — Polymer Processing & Technology II
- FAEN 101 — Algebra
- FAEN 102 — Calculus I
- FAEN 201 — Calculus II
- FAEN 301 — Numerical Methods
- FAEN 302 — Statistics For Engineers
- FENG 401 — Law For Engineers
Practising FAEN 112 with Questora
Upload your own slides, notes and past papers for FAEN 112 and Questora builds mock exams, practice questions and a revision plan from them.
Start freeCourse details from University of Ghana Volume 3 Handbook for the Bachelor's Degree: Course Descriptions for Programmes in the Sciences (2017).