Download "C Programming Tutorial - 24 - Increment Operator"

Download this video with UDL Client
  • Video mp4 HD+ with sound
  • Mp3 in the best quality
  • Any size files
Video tags
|

Video tags

language
for
beginners
youtube
thenewboston
lesson
bucky
tutorial
lectures
arrays
functions
pointers
structures
bangla
roberts
how
to
learn
education
class
C (Programming Language)
Increment And Decrement Operators
School
Subtitles
|

Subtitles

00:00:00
all right guys welcome back and in this
00:00:02
tutorial I want to show you guys about
00:00:04
this cool little bit of code called the
00:00:05
increment operator now what this is is
00:00:08
it's a really quick and efficient way to
00:00:10
either add one or subtract one from a
00:00:13
variable and we'll see later on while
00:00:16
this is actually not even useful but
00:00:18
like pretty much necessary so let's just
00:00:21
go ahead and make a quick little
00:00:22
variable right now and actually I don't
00:00:24
want to name it X that's boring let's
00:00:25
name it tuna because I love
00:00:28
tuna and that sounded kind of weird like
00:00:31
a love tuna I don't know whatever so
00:00:33
anyways we'll just go ahead and print it
00:00:34
out on the screen print F do love tuna
00:00:38
though and since this
00:00:40
is percent D and we'll K it to a new
00:00:44
line so we print out tuner right now and
00:00:46
of course it prints out 20 on the screen
00:00:49
nothing that exciting about that so the
00:00:52
cool thing I want to talk to you guys
00:00:53
about is this operator and what it is is
00:00:56
it's basically a symbol that you add
00:00:58
right after your variable name so type
00:01:01
in your variable name my case tuna and
00:01:03
add two little plus Signs Now what this
00:01:06
is going to do is it's pretty much going
00:01:08
to say okay I'm going to add one to um
00:01:12
your variable so increase its value by
00:01:15
one so now tuna is equal to
00:01:19
21 so if I copy and print it out now
00:01:22
check it
00:01:23
out it was 20 that's why I printed this
00:01:26
out and then it added one and it printed
00:01:28
out the new value now you can also do
00:01:32
this with minus minus of course this
00:01:34
takes away one or subtracts one from
00:01:36
your
00:01:37
variable so let me close this and run it
00:01:41
again and that's why you got 19 now
00:01:45
another thing that I want to point out
00:01:46
and that confuses a lot of people is
00:01:48
this if I just showed you guys this
00:01:50
example and I put that increment
00:01:52
operator before tuna and ran this your
00:01:56
guys are going to be like okay 24 21 so
00:01:59
it really doesn't matter if you have it
00:02:00
before or after the variable because it
00:02:03
adds one what the heck I never
00:02:07
even oh same guy is texting me again
00:02:10
freaking want to every time he wants to
00:02:12
eat cracker bear cracker bow shut up
00:02:15
bagels with my stupid cat all right so
00:02:17
right now you may be thinking all right
00:02:19
it doesn't matter if you have this
00:02:20
before or after tuna it adds one to it
00:02:23
tomato tomato but actually even though
00:02:27
um it looked the same right now there is
00:02:29
a huge difference and I'll show you guys
00:02:31
an example and once you guys see this
00:02:34
everything is be going to become crystal
00:02:37
clear so let's go ahead and make three
00:02:40
variables and a equals set it equal
00:02:43
anything you want set mine equal to 5 b
00:02:46
equal to 10 and let's let's just like uh
00:02:49
go ahead and multiply these numbers
00:02:51
together so restore that value and
00:02:54
answer and right now it's equal to zero
00:02:56
but we'll change that later
00:02:58
on so so let's just do something stupid
00:03:01
like take answer and set it equal to
00:03:04
what would it do first Plus+ a and
00:03:07
remember that's the increment operator
00:03:09
so it's going to add one to the value of
00:03:12
a which would become six and multiply it
00:03:15
by B would just keep B the
00:03:17
same and now I just want to show you
00:03:20
guys the answer on the
00:03:23
screen and we'll just put the
00:03:26
answer percent
00:03:30
and we'll bump to a new line so that's
00:03:32
pretty much going to say okay a * B
00:03:35
print it out on the screen easy enough
00:03:38
simple stuff and you actually probably
00:03:40
need answer right there if you want to
00:03:42
print something out and now what I want
00:03:44
to do is I actually want to copy all of
00:03:47
this and I want to do the exact same
00:03:50
thing again but just changing a few
00:03:52
things now the first thing I want to
00:03:55
mention is this the reason that I copied
00:03:57
this first line as well is because I
00:03:59
want to reset our variables back to
00:04:01
normal because right now we added one to
00:04:03
a so that's going to become Z six excuse
00:04:06
me so reset that back to five and also
00:04:09
answer is going to go from zero to
00:04:12
whatever this is so reset that back to
00:04:14
zero so we can calculate it again and
00:04:17
also whenever you're resetting um your
00:04:19
variables values make sure that you get
00:04:22
rid of that int keyword that is only for
00:04:26
you only need to say that one time just
00:04:28
to tell C um what type of data you're
00:04:31
going to store in that variable you
00:04:32
don't need it again um it already knows
00:04:35
that we're storing ins so get rid of it
00:04:38
so right now these pretty much print out
00:04:40
the exact same thing so what I wanted to
00:04:43
demonstrate is what happens when you
00:04:44
have those plus signs called the
00:04:46
increment operator on the right hand
00:04:48
side instead of the left so run this bad
00:04:51
boy and check it
00:04:53
out even though we use that same
00:04:56
increment operator and even though we
00:04:59
use the same
00:05:00
equation one time we got 60 and one time
00:05:03
we got 50 so what the heck is going on
00:05:07
why did that do that because we know
00:05:09
that this plus plus sign as we saw
00:05:11
before it just adds one it turned that
00:05:13
20 into 21 so why are we getting
00:05:15
different answers well the reason is
00:05:18
because whenever you use the plus sign
00:05:20
on the left it works a little bit
00:05:21
differently than on the right whenever
00:05:23
you use it on the left it changes the
00:05:26
value of a before it runs the
00:05:30
equation so you can kind of think of
00:05:32
this is that add one to a here so it
00:05:38
adds one to a before it changes the
00:05:42
equation and then this becomes six right
00:05:46
now so that's why we got 60 now whenever
00:05:49
you have it after the
00:05:52
a it pretty much runs the equation with
00:05:55
the current value which is five and then
00:05:58
it changes the value after after it so
00:06:00
if we were to print out a after this it
00:06:03
would be six so just remember um that's
00:06:07
basically what's going on when you have
00:06:08
it on the left hand side it said okay
00:06:11
change the value of a before you do
00:06:13
anything else when you have it after it
00:06:15
it says okay do the equation run this
00:06:18
line of code and then change a after so
00:06:22
that is why we get these little
00:06:24
differences and you know even though
00:06:27
it's just a small detail to take care of
00:06:30
when you're talking about 60 and 50 that
00:06:32
can be you know a difference between
00:06:35
like 60 lb of gold and 50 lb of gold is
00:06:37
a big mistake so uh if you're
00:06:40
programming then that's another thing
00:06:42
you want to keep an eye out for so
00:06:44
hopefully you guys understand I know
00:06:46
it's like a two little symbols and I
00:06:48
spend a lot of time on it but I'm going
00:06:50
to show you guys why this is incredibly
00:06:51
useful in the future and well thank you
00:06:55
guys for watching and see you next time

Description:

https://thenewboston.net/

Mediafile available in formats

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

question iconHow can I download "C Programming Tutorial - 24 - Increment Operator" video?arrow icon

    http://univideos.ru/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

    The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

    UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

    UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

question iconWhich format of "C Programming Tutorial - 24 - Increment Operator" video should I choose?arrow icon

    The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

question iconWhy does my computer freeze when loading a "C Programming Tutorial - 24 - Increment Operator" video?arrow icon

    The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

question iconHow can I download "C Programming Tutorial - 24 - Increment Operator" video to my phone?arrow icon

    You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

question iconHow can I download an audio track (music) to MP3 "C Programming Tutorial - 24 - Increment Operator"?arrow icon

    The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

question iconHow can I save a frame from a video "C Programming Tutorial - 24 - Increment Operator"?arrow icon

    This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

question iconHow do I play and download streaming video?arrow icon

    For this purpose you need VLC-player, which can be downloaded for free from the official website https://www.videolan.org/vlc/.

    How to play streaming video through VLC player:

    • in video formats, hover your mouse over "Streaming Video**";
    • right-click on "Copy link";
    • open VLC-player;
    • select Media - Open Network Stream - Network in the menu;
    • paste the copied link into the input field;
    • click "Play".

    To download streaming video via VLC player, you need to convert it:

    • copy the video address (URL);
    • select "Open Network Stream" in the "Media" item of VLC player and paste the link to the video into the input field;
    • click on the arrow on the "Play" button and select "Convert" in the list;
    • select "Video - H.264 + MP3 (MP4)" in the "Profile" line;
    • click the "Browse" button to select a folder to save the converted video and click the "Start" button;
    • conversion speed depends on the resolution and duration of the video.

    Warning: this download method no longer works with most YouTube videos.

question iconWhat's the price of all this stuff?arrow icon

    It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.