Authored by two standout professors in the fields of Computer Science and Technology with extensive experience in instructing, Learn Programming with C is a comprehensive and accessible guide to programming with one of the most popular languages.
Authored by two standout professors in the fields of Computer Science and Technology with extensive experience in instructing, Learn Programming with C is a comprehensive and accessible guide to programming with one of the most popular languages.
Meticulously illustrated with figures and examples, this book is a comprehensive guide to writing, editing and executing C programs on different operating systems and platforms, as well as how to embed C programs into other applications and how to create ones own library. A variety of questions and exercises are included in each chapter to test the readers knowledge
Written for the novice C programmer, especially undergraduate and graduate students, this books line-by-line explanation of code and succinct writing style makes it an excellent companion for classroom teaching, learning and programming labs.
Preface
Chapter 1: Introduction
History of Programming LanguageDifferent Types of Programming LanguageImportance of ProgrammingC Program StructureStep-by-Step Tutorial to Run a C ProgramKeywordsIdentifiersOperatorsOperator Precedence in CVariablesConstantsEscape SequencesData TypesType CastingExamples
Exercises
- MCQ with Answers
- Questions with Short Answers
- Problems to Practice
Chapter 2: Flow-Control
if Statementif..else StatementNested if..else StatementConditional Operatorfor Loopwhile Loopdo..while Loopcontinue Statementbreak Statementswitch..case Statementgoto StatementExamples
Exercises
- MCQ with Answers
- Questions with Short Answers
- Problems to Practice
Chapter 3: Arrays and Pointers
Arrays2-D arraysMultidimensional arraysStringString FunctionPointersMemory AllocationExamples
Exercises
- MCQ with Answers
- Questions with Short Answers
- Problems to Practice
Chapter 4: Functions
Function TypesFunction StructureFunction CallArrays and FunctionsPointers and FunctionsStorage ClassExamples
Exercises
- MCQ with Answers
- Questions with Short Answers
- Problems to Practice
Chapter 5: Structure and Union
StructureUnionenumData Structure and AlgorithmLinked ListTypes of Linked ListExamples
Exercises
- MCQ with Answers
- Questions with Short Answers
- Problems to Practice
Chapter 6: File Management
File TypesFile OperationsPreprocessorsConditional CompilationExamples
Exercises
- MCQ with Answers
- Questions with Short Answers
- Problems to Practice
Chapter 7: C Graphics
IntroductionFunctionsColor TableFonts of TextFill PatternsIncluding graphics.h in CodeBlocksExamples
Problems to Practice
Chapter 8: C Cross-Platform
Creating Own LibraryTurbo CVisual Studio CodeVisual StudioCommand LineCommand Line ArgumentsLinuxEmbedding C Code into MATLABIntegrating C Code into PythonSwitching from One Language to AnotherTransition to C++ or C# from C
Chapter 9: C Projects
Sazzad M.S. Imran, Ph.D. is a Professor in the Dept. of Electrical and Electronic Engineering, University of Dhaka, Bangladesh. He completed his B.Sc. and M.S. degrees in Applied Physics, Electronics & Communication Engineering from the University of Dhaka and received his Ph.D. degree from the Optical Communication Lab of the Kanazawa University, Japan. Dr. Imran has vast experience in teaching C/C++, Assembly Language, MATLAB, PSpice, AutoCAD, etc. at the university level.
Md Atiqur Rahman Ahad, Ph.D., SMIEEE, SMOPTICA is an Associate Professor of Artificial Intelligence and Machine Learning, University of East London, UK; and a Visiting Professor of Kyushu Institute of Technology, Japan. He worked as a Professor at University of Dhaka and Specially Appointed Associate Professor at Osaka University. He has authored/edited 14+ books and published 200+ peer-reviewed papers (More at http://ahadvisionlab.com).