Arithmetic Operations, Global and Local Variables in C++

Опубликовано: 22 Март 2026
на канале: Tech By Ralph
64
6

In this video, we will discuss Arithmetic Operations, Const Variables, Increment & decrement and Local & Global Scope Variables.
Arithmetic Operations Like Addition, Subtraction, Multiplication and Division are Available in C++ through Arithmetic Operators, Like Plus, Minus, Multiply and Divide. There is also The Modulus Operator Which Helps us find the remainder of the division.
We also spoke about Static Cast, where we converted a variable from integer to double.
We spoke about Increment and Decrement, more specifically, Post Increment, Pre Increment, Post Decrement, Pre Decrement.
And At the end, we spoke about Global and Local Scope Variables, and How to use the scope resolution operator to Access global variables.

Last Lesson:    • Variables and Data Types in C++  

🔴About My YouTube Channel Tech By Ralph🔴
•Welcome to Tech By Ralph, The YouTube Channel Passionate About Technology and Programming.
This Channel is All About Educating People Interested in the Field of Technology and Programming. What Tech By Ralph Exactly Offers is Informative Videos About Modern Technology in Our World, as Well as How to Videos, Tips and Tricks, Educational Videos, And Tutorials. Everything is Tech-Related Content and Programming, Helping You Evolve Your Skills and Stay Up-To-Date With Technology.
Schedule: Every Monday and Thursday, So Turn on The Notification bell.
✅Subscribe to The Channel For More Tech Content and Programming✅
- - - - - - - - - - - -
•Subscribe to Tech By Ralph:    / @tbr-techbyralph  

💿 Recommended Playlists:
-Learn git and github for Beginners:    • Git & GitHub Tutorial For Beginners - Comp...  
-Learn Python for Complete Beginners:    • What is Python | Python Tutorial for Begin...  
Full Python OOP Tutorial:    • Introduction to OOP | Python Object Orient...  
-Learn Web Development With HTML and CSS:    • HTML and CSS Tutorial for Beginners  

🎥 Recommended Videos:
Python Or JavaScript?    • Python Or JavaScript? Which One Should You...  
Python Socket Programming Tutorial:    • Socket Programming in Python  
C++ In 4 Minutes:    • C++ in 4 Minutes!  
Typescript in 4 Minutes:    • Typescript in 4 Minutes!  
C Sharp in 4 Minutes:    • C Sharp in 4 Minutes!  
Dart in 4 Minutes:    • Dart in 4 Minutes!  

🎵 Songs Used In this Video 🎵
––––––––––––––––––––––––––––––
Buddha by Kontekst   / kontekstmusic  
Creative Commons — Attribution-ShareAlike 3.0 Unported — CC BY-SA 3.0
Free Download / Stream: http://bit.ly/2Pe7mBN
Music promoted by Audio Library    • Buddha – Kontekst (No Copyright Music)  
––––––––––––––––––––––––––––––
Track: Julius Dreisig & Zeus X Crona - Invisible [NCS Release]
Music provided by NoCopyrightSounds.
Watch:    • Julius Dreisig & Zeus X Crona - Invisible ...  
Free Download / Stream: http://ncs.io/InvisibleYO
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

➡Please Note That All Videos and Information on This Channel are for Educational and Informational Purposes Only.

🔖 Hashtags 🔖
#programming #computerscience #coding
#technology #tech #softwareengineer
#softwaredeveloper #programming #coding
#cpp #c++

TIMESTAMPS:
0:00 Lesson Introduction
0:23 Declare Two Variables on a Single Line
1:44 1- Addition in Cpp
2:13 Run Code Using CMD
3:23 1- Subtraction in Cpp
3:58 1- Multiplication in Cpp
4:08 1- Division in Cpp
5:37 Type Casting Using Static Cast
6:42 1- Modulus Operator in Cpp
8:24 2- Augmented Assignment Operator
9:37 3- Increment (Pre Increment & Post Increment)
11:38 3- Decrement (Pre Decrement & Post Decrement)
11:58 4- Constant Variables
12:52 5- String Concatenation
13:56 6- Global & Local Scope Variables in Cpp
15:52 Lesson Finished