Lecture 2: Write Your First
Program in C++
CodeHelp - by Babbar
Hello ji, How Are You?
This is Love Babbar, welcome to
the channel Codehelp. This is the
2nd lecture of our DSA series.
Today we are going to create our
first program. We will see how a
program runs and what does
each line mean. We are going to
understand everything in this
lecture. So let's get started.
Getting Started
We saw in the last lecture that we
create our source code using a
programming language. But we
know that a computer won't
understand our code because it
only knows binary {01) language.
, So, we need something that
translates our source code into
machine understandable
language just like we use a
translator to convert Hindi to
French.
We have a compiler which
converts source code into binary
language, allowing it to be run by
a computer and produce an
output. This is how the
compilation process works .
Essentially, the compiler makes it
possible for us to run a source
code.
Here's an example: let's say we
have a=1, b=2, and we want to do
c=a+b. The computer won't be
able to understand these lines of
code on its own . First, a compiler
Program in C++
CodeHelp - by Babbar
Hello ji, How Are You?
This is Love Babbar, welcome to
the channel Codehelp. This is the
2nd lecture of our DSA series.
Today we are going to create our
first program. We will see how a
program runs and what does
each line mean. We are going to
understand everything in this
lecture. So let's get started.
Getting Started
We saw in the last lecture that we
create our source code using a
programming language. But we
know that a computer won't
understand our code because it
only knows binary {01) language.
, So, we need something that
translates our source code into
machine understandable
language just like we use a
translator to convert Hindi to
French.
We have a compiler which
converts source code into binary
language, allowing it to be run by
a computer and produce an
output. This is how the
compilation process works .
Essentially, the compiler makes it
possible for us to run a source
code.
Here's an example: let's say we
have a=1, b=2, and we want to do
c=a+b. The computer won't be
able to understand these lines of
code on its own . First, a compiler