Skip to main content

C Plus Plus programming tutorial | Basics of C++

NETWORK TECH WORLD

 C Plus Plus programming tutorial | Basics of C++

This tutorial is about C++ Programming language. I will teach C++ from very basics to advanced level in this post and upcoming posts. Just wait and read all the posts regularly.
This tutorial is mainly about theoretical knowledge but is very important!
Some Definitions :
  •  Bit : It is the smallest unit a computer can understand. it is either 0 or 1. 0 generally means circuit is OFF and 1 means ON.
  • ASCII : All characters on keyboard have a code which is known as ASCII code.
    Range A-Z  ->  65-90
    a-z  ->  97-122
  • Byte : Group of 8 bits. 1 byte means 1 character.
  • Program : It is a step by step instruction which tell what to do and how to do.
  • Object Code : A program which a machine can understand is called Object Program.\
Compiler : 
A program which converts source code[ English like step wise instruction to computer] to object code[language which a machine can understand].
IT executes the entire program at once and hence It is faster.
Interpreter :
A program which converts source code[ English like step wise instruction to computer] to object code[language which a machine can understand]. But the interpreter executes the program line by line and hence it is slower.
Constants : 
Integer Constant :
  • Consist of 0-9
  • Doesn’t includes commas or spaces.
  • Preceded by a + or – sign. + sign is assumed if there isn’t any sign.
Character constants : Any single character enclosed in single quote (‘). Ex :- ‘a’ ,  ’b’ .
Strings : Generally consist of more than one character within double quote (“).
Ex: “comp”, “abcd”.
Difference between String and Character :
Character constant takes 1 byte for storage while string constant takes 2 bytes for storage because in String  a byte is reserved for Null Byte.
Memory representation : 
Character : ‘A’    ==   |A| << stored in one memory cell
String : “A”  ==  |A|\0|  << stored in 2 memory cells with \0 as a NULL byte.
Variables in C++ : These are the tokens that are identified by identified by an identifier and change the value during execution.
Ex : int a=5;
a=a+3;
cout<<a;
Here a is a variable. The initial value of a was 5 but it was then changed to 8 by command a=a+3 .

Comments

Popular posts from this blog

Distance learning online course

NETWORK TECH WORLD If anybody wants to doing online distance learning courses are We all the courses. BA, MA, BCOM, MCOM, BCA, MCA, BSC IT, MSC IT, BED, MED, BSC, MSC, B LIB, M LIB, BTECH, MTECH, BBA, MBA, D PHARMA, B PHARMA, BHM, DHM, MHM, PhD, Bped, More etc or 10th and 12th University's are 1. IEC University Himachal Pradesh 2. Sunrise University Alwar Rajasthan 3. Himalayan Garhwal University Uttrakhand 4. Sangai International University Manipur 5. Calorx University Ahmedabad Gujarat 6. Himalayan University Arunachal Pradesh 7. Arni University Himachal Pradesh 8.Subharti University Inquiry call or what's app number is 7017329859 or comments below thank u.

How to increase your internet speed

NETWORK TECH WORLD  How to increase your internet speed Moderate Internet speed is the most ghastly and abominable condition for each Internet client. It influences the work of the clients and causes wastage of time. There are numerous purposes for the moderate Internet speed. Luckily, you can build the pace of your net association with a few enterprises. Top 5 ways to increase your internet speed Use antivirus program: A standout amongst the most normal purposes for the moderate  Internet speed  is infection, spy wares and ad ware. These infections influence the Internet settings and capacities that in turn cause moderate scanning speed. Thus, it is fitting that you institute exceptional quality against infection programming to get freed from the infection and their terrible impacts. Filter your workstation on a normal foundation with a hostile to infection to evacuate all the infections and ad ware. Use ad ware evacuation system and spy ware evac...

What is difference between osi model and tcp model

NETWORK TECH WORL What is difference between osi model and tcp model  The OSI model (Open Systems Interconnection model) and the TCP/IP model are both frameworks that describe how data is transmitted between computers over a network. The OSI model is a theoretical model that consists of seven layers, each of which performs a specific function in the process of transmitting data. The layers are: Physical layer: This layer deals with the physical transmission of data. It is concerned with things like cables, connectors, and the actual physical transmission of data over the network. Data link layer: This layer is responsible for ensuring that the data is transmitted accurately from one device to another over a physical link. It is concerned with things like error correction and flow control. Network layer: This layer is responsible for routing data between devices on a network. It determines the best path for data to take based on things like network congestion and the availability of...