Introductions To C

  • Introduction to Programming: Computer system, components of a computer system, computing environments, computer languages, creating and running programs, Algorithms,flowcharts.
  • Introduction to C language: History of C, basic structure of C programs, process питер работа of compiling and running a C program, C tokens, keywords, identifiers, constants, strings, special symbols, variables, data types, I/O statements.


  • When we consider larger programs, it is not possible to understand all aspects of such programs
  • without reducing them to smaller parts. The planning for large programs is as follows
  • Understand the problems as a whole
  • Break it into simpler, understandable parts.
  • Solve individual parts and combine them.
  • Each part of a program is termed as module. The process of sub-dividing a problem into manageable parts is called top-down design.

Arrays & Pointers

  • Often we need many different variables that are of the same type and play a similar role in the program
  • For example, suppose we have a temperature reading for each day of the year and need to manipulate these values several times within a program.
  • With simple variables,
    o We would need to declare 365 variables.
    o We would not be able to loop over these variables.
  • An array is a numbered collection of variables of the same type.
  • An array is a homogeneous collection of data.
  • The variables in an array share the same name and are distinguished from one another by their numbers or subscripts.


  • Statements- Selection Statements(making decisions) – if and switch statements, Repetition statements ( loops)-while, for, do-while statements, Loop examples, other statements related to looping – break, continue, go to, Simple C Program examples.
  • A statement causes an action to be performed by the program. It translates directly into one or more executable computer instructions

Strings & Files

  • A string is a sequence/array of characters.
  • C has no native string type; instead we use arrays of char.
  • A special character, called a “null”, is important because it is
    the only way the functions that work with a string can know where the string ends.