Professional Documents
Culture Documents
Syntax:
int a[5];
SOLUTION
DRY RUN 2D ARRAY
OUTPUT:
ARRAYS
Self-Test 01:
Array Frequency Count: Implement a C++ program to
count the frequency of a given element in an array of
integers.
SOLUTION
USING A POINTER VARIABLE
2000
int x; 12
x = 12;
x
NOTE: Because ptr holds the address of x, we say that ptr “points to”
x
USING A POINTER VARIABLE
WITH ARRAY
ARRAYS & POINTERS
Self-Test 02:
Provide output for following code segment?
OUTPUT:
FUNCTIONS
Write a C++ program to write a function named sum. Pass
two integer type values from main to function and return
the sum of numbers in main
Function Calling
SOLUTION
Object Oriented Programming
Techniques
PROGRAMMING PARADIGM
1. Procedural Programming
Structured/Modular Programming
2. Object Oriented
Programming
HISTORY
Difficult to code using Machine Language