Int Float Double Char Bool
Int Float Double Char Bool
Week 3: Pointers
1. Introduction to Pointers
• Defining pointers and using them to access memory locations.
2. Pointers and Arrays
• Using pointers to manipulate arrays.
3 . Dynamic Memory Allocation
• Allocating memory dynamically using new and delete.
4 .Dynamic Arrays
• Allocating and managing dynamic arrays.
WorkSpace :
1. Practical Projects
• Developing a simple application such as a calculator or a notepad
using the concepts learned.
2. Final Project
• Building a complete project that integrates various concepts from
the course.
1. Speed: C++ programs run quickly, which is important for tasks that need
a lot of power.
2. Reusable Code: It supports object-oriented programming, which helps
organize and reuse code easily.
3. Memory Control: C++ lets you manage memory directly, giving you
more control over how your program runs.
4. Flexible: It’s used for many different things, from small devices to big
software systems.
5. Portable: C++ works on many platforms, so you can run your programs
on different computers easily.
C++ Usage :
C++ is used in fields such as system software, game development, embedded
systems, scientific computing and high-performance applications. The C++
standard library provides a range of coding utilities and functions, making it easy
to develop complex software systems. C++ can run on many platforms, including
Linux, Mac and Windows.
Hello World Programe :
Data Types :
Declaring and initializing variables :
Getline Methode :
Arithmetic operations :
if / else /else if :
Logical operators: &&, ||, !:
Logical And :
Logical OR :
Loops :
For Loop :
While Loop :
Do-While :