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 converts the source code into an exe cutable
format, which the computer can then run.
So, to summarize: a program works by using a compiler to convert
source code into an executable format that can be run by a computer
and produce an output. Hopefully, this gives you a basic understanding
of what a compiler does and how a program is executed.
Let's talk about the Coding Ninjas.
Coding Ninjas has supported us in providing this amazing DSA course
to you. Thanks to them, Coding Ninjas is one of the largest coding
platforms in India.