This note covers the following
topics: why use c, an example c program, variables and expressions, variable
declaration, variable types, variable names, assignment, arithmetic operators,
increment and decrement operators, cast operators, bitwise operators ,
promotions and conversions , parsing rules , symbolic constants and the
preprocessor, input and output, formatted output printf, conversion specifiers,
literal constants, formatted input scanf, character io getchar putchar,
endoffile, flow of control, relational and logical operators, conditional
branching if, conditional selection switch, iteration while for, local jumps
goto , short circuit behaviour , problems, declaring array variables,
initialising array variables, functions, building blocks of programs, return
value, function parameters, variable function parameters, function
definition and declaration, function prototypes, scope blocks and variables,
blocks and scope, variable storage classes , declaration versus definition, initialisation of variables , arrays pointers and strings, pointers are
addresses, pointers are not integers, the and operators, declaring pointer
variables, pointers and arrays, dynamically sized arrays, the null pointer and
pointer to void, pointer arithmetic, strings, files, file pointers, opening a
file, program arguments, io streams , redirection of io streams , structures
unions and fields, enumerated types, defining new names for types with typedef,
structures, unions , fields , more advanced topics , comma operator, conditional
operator, name spaces, type qualifiers , functions as parameters, preprocessor
macros, assertions, managing c programs, separate compilation, conditional
compilation, using projects in borland c, unix and c, header file
locations, memory usage , text area, data area, the stack, the heap, possible
problems, c and the ibm pc , memory organisation, bios basic io system
interrupts, dos interrupts, dynamic link libraries dlls, windows application
programming interface api, why c, evolution of the c language, c and operating
systems esp unix, comparison with pascal and fortran, availability, portability,
efficiency, modular programming and libraries, applications, kernighan ritchie c
vs ansi c, criticisms of c.
This lecture note explains how to solve the following programs: sum of
individual digits of a positive integer, the roots of a quadratic equation,
programs that use both recursive and non-recursive functions, find both the
largest and smallest number in a list of integers, C program to count the lines,
words and characters in a given text, C program to generate Pascal’s triangle, a
C program which copies one file to another, C program to display contents of a
file, e C programs that uses non recursive function to search for a key value in
a given list of integers using Linear search, C programs that implements the
Selection sort method to sort a given array of integers in ascending order, C
programs that implement Queue (its operations) using singly linked list to
display a given list of integers in same order, C program to implement linear
regression algorithm, C program to implement the polynomial regression
algorithm, C program to implement the Lagrange interpolation, C program to
implement Trapezoidal method, C programs to implement Simpson method.
Author(s): Aurora’s Technological And Research
Institute
This
note covers the following topics: C essentials, Data types, Data input and
output, Operators and expressions, Decision control structure, Loop control
statement, Arrays, Functions, Strings, Pointers and Introduction to cpp.
This note explains the following topics: C Language
Fundamentals such as Character set, Identifiers, keyword, data types, Constants
and variables, statements, expression, operators, precedence of operators,
Input-output, control structures, decision making and branching, Arrays,
Functions and Strings, Pointers, Structures, Unions, File handling.
Author(s): Asst. Professor Mrs Etuari Oram and Asst.
Prof. Mr Bighnaraj Naik
This is a
reference manual for the C programming language as implemented by the GNU
Compiler Collection (GCC). Topics covered includes: Lexical Elements, Data
Types, Expressions and Operators, Functions, Program Structure and Scope.
This
course note provides a thorough introduction to the C programming language, the
workhorse of the UNIX operating system and lingua franca of embedded processors
and micro-controllers.
This note covers the following topics: The Common Desktop
Environment, C/C++ Program Compilation, C Basics, Conditionals, Looping and
Iteration, Arrays and Strings, Functions, Pointers, Dynamic Memory Allocation
and Dynamic Structures, Low Level Operators and Bit Fields, The C
Preprocessor, C, UNIX and Standard Libraries, Integer Functions, Random
Number, String Conversion, Searching and Sorting, String Handling, File Access
and Directory System Calls, Interprocess Communication (IPC), PipesRemote
Procedure Calls (RPC) and Writing Larger Programs.