Download Programming in C Dr P Rizwan Ahmed and more Study notes Computer Applications in PDF only on Docsity! Programming in C (ANSI C) Dr.P.Rizwan Ahmed Margham Publications Programming in C ( For B. Sc Computer Science, B.Sc., Software Computer Science, B.Sc. ISM, B.Sc. IT, B.Sc. Software System, B.Sc. Software Engineering, B.Sc.(Physics with CA), B.Sc.(Mathematics with CA),B.Sc.(Software System), B.Sc.(Electronics), B.Sc.(Electronics and Communication Systems), B.Com (CA),B.Com(IT), BCA, MCA, and IT Professionals.) Dr.P.Rizwan Ahmed, MCA. M.Sc., M.A., M.Phil., Ph.D, Head of the Department Department of Computer Applications & Post Graduate Department of Information Technology Mazharul Uloom College, Ambur – 635 802 Tamil Nadu, INDIA. Margham Publications No.24, Rameswaram Road, T- Nager, Chennai- 600 017 Phone:(044) 2432 2469 Web Site: www.margham.in E-mail:
[email protected] 4.5.1.1 Simple if statement 4.5.1.2 if…else Statement 4.5.1.3 Nested-if Statement 4.5.1.4 Switch Statement 4.5.1.5 Difference between switch statement and if statement 4.5.1.6 Difference between switch and nested if statements 4.5.2.Looping Statement 4.5.2.1 While loop statement 4.5.2.2 Do - while 4.5.2.3 for loop 4.5.2.4 Difference between while and do-while loop 4.5.3 Jump Statement 4.5.3.1 Break statement 4.5.3.2 Continue Statement 4.5.3.3 Distinguish between Break and Continue 4.5.4 goto statements 4.6 Comma operator 4.7 Sample C Programs Summary Review Question Programming Exercise Chapter 5 Functions 5.1 Functions 5.2 Advantages of functions 5.3 Need for user defined functions 5.4 The form of C Functions 5.5 Return Statement / Return Values and their types 5.6 Function prototype 5.7 Calling a function 5.8Formal and Actual arguments 5.8.1 Formal arguments 5.8.2 Passing arguments 5.9 Category of functions / Types of functions 5.9.1 Function with no arguments and no return value 5.9.2 Function with arguments and no return value 5.9.3 Function with no arguments and return value 5.9.4 Function with arguments and return value 5.10Call by Value and Reference 5.10.1 Call by Value 5.10.2 Call by Reference 5.11 Recursion Summary Review Questions Programming Exercise Chapter 6 Storage Classes 6.1 Storage Classes 6.1.1 Automatic 6.1.2 External 6.1.3 Register 6.1.4. Static Summary Review Questions Chapter 7 Arrays 7.1 Arrays 7.1.1 Advantages and Disadvantages of Arrays 7.2 Characteristics of arrays 7.3 Types of Arrays 7.3.1 One dimensional array 7.3.2 Two dimensional arrays 7.3.3 Multidimensional arrays 7.4 Strings 7.5 Sample C Programs Summary Review Questions Programming Exercise Chapter 8 User-Defined Data Types (Structure, Union, Typedef and Enumeration) 8.1 User-defined data types 8.2 Structure 8.2.1 Defining structure 8.2.2 Structure declaration 8.2.3 Giving values to structure members 8.2.4 Structure Initialization 8.2.5 Difference between arrays and structure 8.3 Structures within Structures 8.4 Pointers to Structures 8.5 Self-referential structure 8.6 Sample C Program 8.7 Union 8.7.1 Declaration of Union 8.8 Difference between Structure and Union 8.9 Difference between Structures and Arrays 8.10 typedef 8.11 Enumerated Data Type 8.12 Bitwise Operations Summary Review Questions Programming Exercise Chatper-9 Pointers 9.1 Introduction 9.2 Definition 9.3 Advantages of Using Pointers 9.4 Application of Pointers 9.5 Accessing the address of the variable 9.6 Declaring and Initializing Pointers 9.7 Accessing a Variable through its Pointer 9.8 Pointer Operators 9.9 Operations on Pointers 9.9.1 Pointer Arithmetic and Pointer Expression 9.10 Arrays of Pointers 9.11 Pointers to functions 9.12 Pointers and Arrays 9.13 Pointers and Structures 9.14 Dynamic Memory Allocation 9.15 Command line input or arguments Summary Review Questions Chapter 10 Files in C 10.1 File 10.2 Creating a file 10.3 Reading a file 10.4 Writing a file 10.5 Opening a file 10.6 Closing a file 10.7 Operations on files 10.8 Sample C Program Summary Review Questions