Search for notes by fellow students, in your own course and all over the country.

Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.

My Basket

You have nothing in your shopping cart yet.

Title: Write Your First Program in C++
Description: Write Your First Program in C++

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


Chapter 2
Write Your First Program in C++
This is the 2nd lecture of our DSA series
...
This is how the
compilation process work So it is compiler which makes it possible for
us to run a source code
...
Courses are available in both Hindi and
English
...
There are
many IDEs out there - CodeBlocks, VsCode and many more - which you
don't even need to install Replit is one of them
...
In C++, many namespaces are there
which have cout functions in them so if we want to use cout , we have
to add this file to our code
...
If you will use > > by mistake by mistake, then it
will give you compilation error So we use this operator to display
output
...
Whenever you
have to story any information or data in the memory
...
For
eg- int a = 5, a is a variable in memory which is of int type and it has
value 5 in it
...
There is a function named sizeof , which will tell you
about the space being used by any variable
...
We have a way to story multiple
characters but we will see that in upcoming lectures
...
We will just

store binary form of ASCII value of any character
...
This
process of converting one data type into another is known as type
casting
...
Let 's say the number is -5 1st - Ignore the negative sign 2nd Convert into binary representation = 101 3rd - Take 2 's complement
and store it Now we can store negative numbers simply too, by just
using their first bit as their sign
...
2/5 will give 0 and not 0
...
To get answer in
float, store it in a float variable
...
logical
operators have & & and & is used to check multiple conditions
...
We know what things to keep in
mind while dividing , how to store negative numbers & & operators and
! operators
...
We will do
Bitwise operators later
Title: Write Your First Program in C++
Description: Write Your First Program in C++