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.
The contents include: Review of C and Aggregate Data Types, Building Larger
Programs, Functions,Bit Manipulation, Pointers, Binary I/O and Random Access, Designing Data Types,
Linked Lists,Software Tools, Library Functions, File Access.
Author(s): UMBC Training Centers, Columbia Gateway
This
note describes the following topics: Beginning With C, Input/output, Control Statements, Loops, Arrays and Strings,
Data Types, Functions, Pointers, Structures, File Manipulation.
This note explains the
following topics: Spacing and indentation, Input and output, Branching and
looping, Arrays, Variable Types, Operators, Functions, Structures, Libraries,
Makefiles, Pointers, Dynamic Data Structures, Advanced Pointers, Strings,
Operator Precedence, Command Line Arguments, Text files, Binary Files.
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
C probably has been the most influential programming language
during the last 25 years. It was originally introduced for the implementation of
UNIX, but is now used for a large variety of very different tasks. This note
will introduce the C programming language in the context of the UNIX operating
system. It will also cover UNIX from a user and a programmer perspective.
This course is intended to help a good programmer particularly someone familiar with DEC Fortran, start programming in
C. Topics covered includes: Why is the language called C, Variables, Types and
Functions, Loop and Flow Control Constructs, Arrays, Pointers, Strings,
Structures and Unions, Typedef, Header Files, Macros and the ? operator,
Logical and Relational Operators, Bitwise Operators, Function Prototypes, File
IO Routines and Command Line Arguments, Obfuscation, Changing from VAX C or
K&R C to ANSI Compliant DEC C.