Professional Documents
Culture Documents
Course Code: MCT321 Course: Computer Applications L: 3 HRS., T: 1 HRS., Per Week Total Credits: 07
Course Code: MCT321 Course: Computer Applications L: 3 HRS., T: 1 HRS., Per Week Total Credits: 07
Syllabus
Unit – I : Arrays and applications :
• Introduction to arrays, Types of arrays, arrays
and functions, Searching : linear and binary.
Sorting : bubble insertion, selection, quick and
merge. Pointers : Introduction (declaration and
initialization), address arithmetic, Pointers to
pointers, Pointers and multidimensional arrays,
Concept of dynamic memory allocation.
Unit - I
Overview of C Language
• C is a structured programming language developed
by Dennis Ritchie in 1973 at Bell Laboratories.
• C language was developed to write the UNIX
operating system, hence it is strongly associated
with UNIX.
• C language has evolved from three different
structured language ALGOL, BCPL and B Language.
Unit - I
• In 1988, the language was
formalized by American
National Standard
Institute(ANSI).
• In 1990, a version of C
language was approved
by the International
Standard Organisation
(ISO) and that version of C
is also referred to as C89.
Unit - I
main() function
• main() function is a function that must be there in every
C program. Everything inside this function in a C program
will be executed. In the above example, int written
before the main() function is the return type of main()
function.
Comments
• We can add comments in our program to describe what
we are doing in the program. These comments are
ignored by the compiler and are not executed
Unit - I
Compile and Run C Program
Keywords in C?
• Keywords are preserved words that have special meaning in C
language. The meaning of C language keywords has already
been described to the C compiler. These meaning cannot be
changed.
Unit - I
What are Identifiers?
• In C language identifiers are the names given to
variables, constants, functions and user-define data.
These identifier are defined against a set of rules.
int myvariable = “RCOEM
Unit - I
Operators in C Language
• C language supports a rich set of built-in operators.
An operator is a symbol that tells the compiler to
perform a certain mathematical or logical
manipulation.
• Operators are used in programs to manipulate data
and variables.
• Arithmetic operators, Relational operators , Logical
operators, Bitwise operators, Assignment
operators Conditional operators, Special operators
Unit - I
• s
Unit - I
• Integer
type
• Floating
point
type
Unit - I
• Character type
• void type
void type means no value. This is usually used to
specify the type of functions which returns nothing.
Unit - I
Variables in C Language
• In C language, when we want to use some data
value in our program, we can store it in a
memory space and name the memory space so
that it becomes easier to access it. The naming
of an address is known as variable.
• A variable in C language must be given a type,
which defines what type of data the variable will
hold.
Unit - I
Example:
int a; float b, c;
int a = 10;
Unit - I
• s
Unit - I
• s
Unit - I
Decision making in C
C language handles decision-making by supporting
the following statements,
if statement
switch statement
conditional operator statement (? : operator)
goto statement
Unit - I