BASIC OF C AND C++ PROGRAMMING LANGUAGE
BASIC OF C AND C++ PROGRAMMING LANGUAGE
Introduction.
Every thing have some basic terminology and when you learn these basic things then you will be able to handle your work more easily.in the same case you Cannot learn C AND C++programing language in easy way if you does not know about the basic component of C AND C++ programming language it must be known those who really want to learn C programming language and want to be a programmer.
Basic of C AND C++ programming Language.
If you want to write a programme in C programming language then you must know about its basic rule that how to write a programme using C language. without these basics you Cannot write a programme using C language. C programming language have some basics component which is must be known every beginner who start to learn C programming language. some of the basic of C programming language is given below.
C language is develop by Dennis Ritchie in 1970. C is the hybrid of two previous programming language from B and BCPL. B ( basic ) and BCPL mean (basic Combine programming language) BCPL was develop by Martin Richard in 1967.
Character Set.
C and C++ contain three type of character set which are most important and basic element which are given below.
v Numeric Character.
v Alphabetic Character.
v Escape Character.
What Is Numeric Character.
Numeric Character are used for Calculation purpose and these are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
What Is Alphabetic Character.
Alphabetic Character are used for naming a variable or writing programming or for user define words etc…
What is Escape Character.
Every language have some special Character which are used for special purpose C programming language have also some special Character which is Called Escape Character.
And these Escape Character are used for specific purpose.
'\' (backslash) is a special Character and is called escape Character.
If you use this '\' Character with n just like this ( \n ) then it tell the compiler that jump to the next line. It is used to leave the first line and start a new line.
Example
cout("asad \n mirza")
so when the programme is executed then it will print like
asad
mirza
How to Name a Variable.
There is some rule which are important to give a name to a variable.
In C and C++ language you can use A to Z alphabet to name a variable.
A = 5
Here A is a variable and 5 is value which is assign to it. You can also choose a name for assigning data with your own choice
forexample:
Weight=56
Age=29
Length=45
Pirce=50
Average=3.4
And so on
But keep in mind that
Ø variable name must be unique in the programme.
Ø Name of a variable is also called user define words.
Ø First letter of a variable must be written in capital words as above.
here
which is wrong variable and cause error because first alphabet of a variable must be start with capital words and here first alphabet is in lower case.
Ø Forexample
Here Average is start with capital words so this is right.
Ø No space is allowed to name a variable only '_' is used in the place of space.
Becase under score'_' is used.
Because space ' ' is used.
Separate variable name with comma ', ' .
Comma is used between two variable.
Space is used between two variable.
Ø After name a variable in the last put simi colon ';' which is mean that the variable is ended.
Example :
void main()
{
int age,name,cotact_no;
}
How To Assign A Value To Variable
C and C++ provide you three data type for assigning a value to variables.
This three data type is.
· int
· float
· char
In C language equal sign '=' is used to assign a value to avariable it is also called assignment operator.
int data type is used for integer value. And thses are (0,1,2,3,4,5,5,6,7,8,9).
float is used for decimal point value. (0.1,3.4,5.9 ……..).
char is used to give a name to a variable or to give some text to variable.
(asad, copy, ali, reg_no, name……).
Keep in mind that the data type is case sensitive and must be given in lower case letter(a,b,c,…z).
Example:
int A=5;
float B=3.5;
char C=college_name;
A simple programme
Void main()
{
char name;
int age;
float height;
name=ali;
age=18;
height=5.9;
}
Be With Us
£V£RYTHING NT
- Install Pentest Tools Ubuntu
- Hacker Tools For Windows
- Tools For Hacker
- Hacker Hardware Tools
- Hacker Tools Free
- Android Hack Tools Github
- Pentest Tools List
- Hacker Tools Apk
- Usb Pentest Tools
- Hacker Tools For Ios
- How To Hack
- Hack Tools For Windows
- Pentest Tools For Windows
- What Is Hacking Tools
- Hack Tools For Ubuntu
- Pentest Automation Tools
- Hacking Tools For Beginners
- Ethical Hacker Tools
- Wifi Hacker Tools For Windows
- Hacker
- Physical Pentest Tools
- Pentest Tools Android
- Hacker Tools Apk Download
- Pentest Tools Windows
- Pentest Tools Review
- Pentest Tools Github
- Nsa Hack Tools
- Nsa Hack Tools
- Hack Tool Apk No Root
- Hacker Search Tools
- Pentest Tools Kali Linux
- Hacker Tools Linux
- Hack Tools Online
- Hacking Tools Kit
- How To Make Hacking Tools
- Nsa Hack Tools
- Hacking Tools For Mac
- Blackhat Hacker Tools
- Hacker Tools Windows
- Growth Hacker Tools
- Pentest Tools Free
- Hacker Tools 2020
- Pentest Box Tools Download
- Ethical Hacker Tools
- Underground Hacker Sites
- Hacker Tools For Mac
- Hack Apps
- Pentest Tools Alternative
- Growth Hacker Tools
- Pentest Tools For Android
- Tools Used For Hacking
- Hacking Tools Download
- Hacking Tools For Kali Linux
- Hacking Tools And Software
- Hacker Tools Windows
- Hack Tools For Mac
- Hack Tools For Windows
- Hacking Tools 2019
- Hack And Tools
- Hacks And Tools
- Install Pentest Tools Ubuntu
- Hacker Tools Linux
- Tools 4 Hack
- Underground Hacker Sites
- Hacker Tool Kit
- Hack Tools For Pc
- Termux Hacking Tools 2019
- Pentest Tools List
- Pentest Tools Kali Linux
- Best Pentesting Tools 2018
- Hack Tools Download
- Hacks And Tools
- Hacker Security Tools
- Hacker Tools Mac
- Hacker Tools Hardware
- Hack Apps
- Hacker Tools 2020
- Black Hat Hacker Tools
- Hacking Tools For Mac
- World No 1 Hacker Software
- Hacking Tools Name
- New Hacker Tools
- Best Hacking Tools 2019
- Hack Tools For Ubuntu
- New Hacker Tools
- Wifi Hacker Tools For Windows
- Pentest Tools Framework
- Pentest Tools Tcp Port Scanner
- Pentest Tools Open Source
- Pentest Tools Url Fuzzer
- What Are Hacking Tools
- Hacker Tools For Windows
- Pentest Tools Open Source
- Tools Used For Hacking
- Tools 4 Hack
- Hacking Tools Download
- Hacking Tools For Games
- Pentest Tools For Ubuntu
- Top Pentest Tools
- Hack Tool Apk
- Nsa Hacker Tools
- Github Hacking Tools
- What Are Hacking Tools
- Hackrf Tools
- Hack Tools Mac
- Tools For Hacker
- Pentest Tools Kali Linux
- Hacker Tools Mac
- Hacking Tools For Windows
- Hack Tools For Windows
- New Hacker Tools
- Pentest Tools For Windows
- Hack Tools For Pc
- Nsa Hacker Tools
- Hacking Tools For Windows
- Tools 4 Hack
- Pentest Tools For Mac
- Pentest Tools Download
- Pentest Tools Port Scanner
- Hack Tools Download
- Pentest Tools Subdomain
- Pentest Tools Subdomain
- Pentest Tools Download
- Game Hacking
- Pentest Tools Open Source
- Hacker Techniques Tools And Incident Handling
- Physical Pentest Tools
- Hacks And Tools
- Hacking Tools Usb
- Hack Tools Download
- Hack Tools
- Hak5 Tools
- Hack Tools For Mac
- Hacker Tools Free Download
- Pentest Tools Linux
- Hacker Tools Github
- Hacking Tools Online
- Hack Tools Github
- Hacker Tools Software
- Hacking Tools For Games
- Hacker Tools Software
- Usb Pentest Tools
- Hacking Tools Name
- Hacking Tools For Windows Free Download
- Pentest Tools Alternative
- Ethical Hacker Tools
- Tools Used For Hacking
- Hacking Tools For Games
- Pentest Tools Review
- Hack Apps
- Hacker Tools 2019
- Hacking Tools Mac
- Hacker Security Tools
- Pentest Tools For Mac
- Hacker Tools 2020
- Hack Tools Download
- Hacking Tools
- Hacker Tools Github
- Hackers Toolbox
- Hacker Security Tools
- Hack Rom Tools
- Pentest Tools For Mac
- Pentest Tools Android
- Hacking Tools Name
- Pentest Tools Windows
- Nsa Hack Tools Download
- Pentest Recon Tools
- Bluetooth Hacking Tools Kali
- Hacker Tools
- Pentest Automation Tools
- Best Hacking Tools 2019
- Hacker Tools For Mac
- Pentest Tools Url Fuzzer
- Hacker Tools Apk
- Pentest Tools For Mac
Inga kommentarer:
Skicka en kommentar