C++ Increment and Decrement Operators | CPP Programming Video Tutorial
ฝัง
- เผยแพร่เมื่อ 9 ก.ย. 2024
- In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn the increment and decrement operators.
you will learn what are increment and decrement operators , how to use increment and decrement operators,using increment and decrement operators as postfix and prefix in detail with example.
Visit www.LearningLad... to get the SOURCE CODE of this tutorial and to watch more free computer programming video tutorials.
Learn Programming in HINDI at our youtube channel
/ learningladhindi
Catch us on Social Media
/ learninglad
www.google.com/...
/ learningladedu
ye=ye + one and ye -- and ye=10
Superb
I love it. I have gone through 4 youtube tutorials I have 8 books. I have done online work. This is my favorite so far. So short sweet and you explain things very well. Great Job.
Wow, thank you!
Reached a good development level in python a few months ago. Decided to move on to C++ this has been the best tutorial C++ tutorial ive found thank you.
pleasure.
keep Learning :)
How is it... After 6 years?
Great learning material provided with a super efficiant teaching style by Mr.Anil...specially for the beginners of CPP.
May Allah bless on you dear Anil..keep it up...
Naeem Chaudhary
thank you :)
You are always Welcome bro
This was a very good tutorial, thank you mr yay
Good one 🤣
Perfect and simple video. Answered my question completely. Well done. Thanks.
my pleasure :)
After so many searches of postfix and prefix videos on yt finally understand by yours video❤
glad my video helped you :)
Thank you very much!!! Reading this in my C++ book left me confused. This explanation was simple and to the point.
pleasure :)
int yay! :))))
u caugh it :D
Lmao!
hehe.. when 'a' starts with 'y'
yee
Haha
Thank you as I've watching more than 5 tutorials today😅 and left I'll watch tomorrow.....and more
Awesome
Keep learning :)
It helped me now in 2021
Thanks, buddy
pleasure :)
best explanation of post/prefix for a newbie like me. thumbs up!
Thank you :)
THIS VIDEO HELPS A LOT FOR BEGINNERS LIKE ME
keep learning :)
@@LearningLad i watch and learn from all of ur videos will it enough for me good marks in BOARD exams
Superb video. Very much helpful in understanding difference between prefix and postfix
Thank you.
keep Learning :)
Thanks Mr. Anil 💜
my pleasure :)
This helped me a lot, subscribed
glad that my video helped you :)
@@LearningLad thank you!
you explained it in amazing way.. thanks
my pleasure :)
tomorrow is my exam and your video helped me a lot.
thank you a lot
I will watch all your episodes , because they are usefull and very good about my C++ skills. I want to make games with Qt and I think that if I learn C++ from here I shall be ready to start Qt learning . Many thanks for this videos :) .
#include
using namespace std;
int main ()
{
int a , b;
a = 10;
cout
you're the best man!
thank you :)
It is very helpful for me.Thank you for your nice and easy tutorial...
+ashrafulhaq ashik
pleasure man :)
ok...ok..now i got it,,,,nice explanation
Great Tutorials, explanation is very nice and understandable. Thank you so much.
+khushbubhavin patel
thank you :)
This is much easier to understand!
very helpful, thanks a lot
yeah! b c d e f g.....
haahahah
Hahahahaha
@@livedelsolar5264 .
it helped me alot, thank learning lad. its great all videos......!!!!
thanks yey❤
welcome
Thanks bro your vid helped
my pleasure :)
This video helped me a lot. Thanks!
Pleasure.
I'm really glad that my tutorials are helping you :)
Thank you.
You're welcome!
brilliant tutorial.
thank you :)
thanks u somuch for the best tutorial / thanks sir /ur voice is so clear
pleasure.
Keep Learning :)
Hi, I need help with this; when I write
int a = 10;
while(a--)
cout
when you have
a--
in the statement where this post decrement is used, the value of the variable is used first and then it will be decremented.
your cout is the next statement and that's why you get 9.
in the video u showed the number is incremented by only 1 , but i want to increment it by 5 ie; i want 15 as output for 10 , how can i do this ??
if the variable is a then do
a += 5;
this will increment the value of a by 5
Thanks.
my pleasure :)
You are awesome. Thank you very much.
my pleasure.
keep learning :)
Wonderfull explanation Sir
Thank you
Greetings!
Sir, i can't understand the last 3 min of this video
In the first he did operation then cout.
Then when he cout (and the operation was in the cout order) the difference appeared...
Now focus and you will get it for sure ^^
Helped me best of the videos
Thank you.
keep Learning :)
thank you for this! It's very helpful!
eyla love
my pleasure man :)
When I click build and run, it says this project is not yet build do you want to build it now? When I click yes, nothing happens and when I click build and run again it shows the same. What to do please help me.
Re-install your code block or any other compiler which you have installed at you os.
+Mouni Raghuram same problem with me bro ! Did you find any solution yet ?
thank you so much
Sir , If we write...
int a=1
Cout
2 2 3
cout mai jo word a hai usse humne double inverted comma mai kyu ni daala
Yay! Thank you so much!
You are so welcome!
Awesome work thank you!!
jesus this video is good
Thank you
it helped Thanks
pleasure.
keep Learning :)
Good🙂
thank you :)
sir if it was -
cout
it will be
11
11
try this program in your computer.
cout
thanks man
Great tutorial
Thank you :)
Nice example !!
+Faisal Ahmed
Thank you :)
yay! :D
#include
using namespace std;
int main()
{
int a= 3;
cout
+abdul rehman
when u use
cout
but in post fix value dosent change and result was 3.
+abdul rehman
value changes.
when u have
++a or a++
it is exactly equal to
a = a+1;
then why it shows different values when we run
thanks
thank you anil.
great !
int a=10;
cout
10 12 12
sir here is the confusion
cout
The first line "cout
can you tell me the logic behind menu driven programmes and fibonacci series.
Fibonacci i can tell you: (Every new number equals to the numbers behind it) 1, 1, 2 (1+1=2) , 3(1+2=3), 5(2+3=5) etc.
hi, i have used both plus plus a and a plus plus but the result was quite similar .
video number 13.
yay..i got it
Bestest
int main()
{
int a = 10;
cout
Execution order of these operators are from right to left. Going by this logic a-- will store 9 in its memory but since it is postfix it will not be displayed this time so for a-- the output is 10.
For a++ the output is 9 because the previous value of memory will be displayed this time.Now the value in memory is 10.Hope this helped
ye!
Thank you
Nice bro
thanx for sharing v.good tutorials..
friend i want to know how this statment run, left to right or from right to left..... a=5;
cout
Right to Left
nice sir...
+ashrafulhaq ashik
thank you :)
int x = 5;
x = ++x;
z = x + ++x;
cout
yea
how can i have the execution time too after debugging?
how would I modify variables start = 6 and increase = 5
+Naytastiic
i can't understand your question. pls provide the source code along with ur question ;)
These tutorials are excellent but sometimes i have difficulty understanding his thick accent. Does anyone know what does he say at 2:15 after 'loops'?
thank you
a= ye?
Anyone wondered whether c++ should be called "c increment"?
Which compiler are you using sir
gcc
The best part is when there's no typo's
You can just type what you write using your pencil.
Yea
Try cout
Only if I don't see the a in the explanation I would never understand 'yay'.
👍👍👍👍👍👍👍
my pleasure :)
Ubuntu pa run ni ho rha
wow
Yeezy must have taught him.
You know, it will be much easier to type it instead of writing it, also your writing is quite slow and hard to understand
thank you for the feedback
will try to make it better in the upcoming videos
Please dont get the wrong idea. Its no offense brother, I learnt alot on your videos. You're awesome 🙂
lisa winters
yay plusplus😀
see how i had made an iphone with html css and JavaScript
int a = 10;
cout
You are wrong buddy the output is
Hello world
12 12 11
The execution is from right to left
Who else is watching it in 2020
Yay :')))
oh ye
Yeh ++ and yeh --
Yeyy...
-1 presentation