MKC PPSC 12
MKC PPSC 12
1
14 False code represents the program, It cannot be
Pseudo codes
compiled or run like a regular program
15 main function from where the program execution
main()
begins
16 scanf() Commonly used function to take input from the user
This function is used for displaying the output on the
17 printf()
screen
18 Predefined, reserved words used in programming, It
Keyword
have a special meaning. Ex: int, switch, for ect…
Name given to entities such as variables, functions,
19 Identifier structures Ex: int a, b; / Here, a and b are
identifiers
Fixed values that the program may not alter during
20 Constants
its execution
Name of the memory location, used to store data
21 Variables and its value can be changed, and it can be reused
many times
Operators to perform tasks including arithmetic,
22 Operators in C
conditional and bitwise operations
Type casting is a way to convert a variable from one
23 Typecasting
data type to another data type
Types of if statement
if-Else statement
24 conditional
if-Else if ladder
statements in C
Switch statement
while loop
25 Type of Loops for loop
do..while
UNIT-II FUNCTIONS, ARRAYSAND STRINGS
A function is a self-contained block or a sub-
26 Functions program of one or more statements that performs a
special task when called.
Function declaration is a declaration statement that
27 Function identifies a function with its name, a list of
Declaration arguments that it accepts and the type of data it
returns.
A function with void result type ends either by
28 Void Function reaching the end of the function or by executing
a return statement with no returned value.
2
An array is a collection of similar data elements.The
elements of the array are stored in consecutive
32 Arrays memory locations and are referenced by an index
(also known as the subscript).
Linear search is also called sequential search. Linear
33 Linear Search search is a method for searching a value within
a array.
Binary search works on sorted arrays. Binary
34 Binary Search search begins by comparing an element in the
middle of the array with the target value.
Two A two dimensional array is specified using two
35 Dimension(2D- subscripts where one subscript denotes row and the
Array) other denotes column.
int main means that our function needs to return
36 int main some integer at the end of the execution and we do
so by returning 0 at the end of the program.
37 Types of Predefined functions
function User defined functions
for (c = 0; c < m; c++)
38 How to read the
for (d = 0 ; d < n; d++)
Matrix
scanf("%d", &second[c][d]);
Formula for sum[c][d] = first[c][d] + second[c][d];
39 Addition of two
matrix
40 New Line
/n
3
1strcpy(s1,s2);
2strcat(s1, s2);
49 String 3strlen(s1);
Functions in C 4strcmp(s1,s2);
5strchr(s1,ch);
6strstr(s1,s2);
It is used to create a new data using the existing
type.
50 typedef Example:
typedef int hours: hours hrs;/* Now, hours can be
used as new datatype */
5
UNIT-IV POINTERS
A pointer is a variable whose value is the address of
76 Pointers
another variable
Declaring a type. Datatype* pointer-name;
77
pointer
6
99 If null value is assigned to a pointer.
Null Pointer
32 bit.
100 Size of far
Pointer
UNIT-V FILEPROCESSING
7
121 Write Writing a file to the memory
Operation
122 Append Appending data to the existing file.
Operation
123 Ways to Access Direct Access.
a file Sequential Access.
124 Fgetw() Reads an Integer from a file.
8
PY is a script file format used by Python
143 Extension of
python file
144 pointer Variable that contains address of
another variable
Structure is another user defineddata type available
145 Structure in C that allows to combine data items of different
kinds.
A union is a special data type available in C that
146 Union allows to store different data types in the same
memory location.
It refers to any declaration within the parentheses
147 Parameter following the function name in a function
definition;
148 argument It refers to any expression within the
parentheses of a function call.
Formal A variable and its type as they appear in the
149
Parameter prototype of the function or method.
The variable corresponding to a formal
Actual
150 parameter that appears in the function or method call
Parameter
in the calling environment.
HoD