Primitive Data Types In C++ - MeraForum Community.No 1 Pakistani Forum Community

MeraForum Community.No 1 Pakistani Forum Community

link| link| link
MeraForum Community.No 1 Pakistani Forum Community » The World of Information » Computer and Information Technology » C++ » Primitive Data Types In C++
C++ All Programs of C++ Languages

Advertisement
 
Post New Thread  Reply
 
Thread Tools Display Modes
(#1)
Old
Morash's Avatar
Morash Morash is offline
 


Posts: 17,781
My Photos: ()
Country:
Star Sign:
Join Date: Jul 2010
Location: ▌║█║▌│█│║▌║
Gender: Male
cool Primitive Data Types In C++ - >>   Show Printable Version  Show Printable Version   Email this Page  Email this Page   04-04-2014, 02:54 PM




Primitive Data Types In C++



The primitive data types in C++ language are the inbuilt data types provided by the C++ language itself. Thus, all C++ compilers provide support for these data types.
The following primitive data types in C++ are available:



Integer data type is used to declare a variable that can store numbers without a decimal. The keyword used to declare a variable of integer type is “int”.

Syntax:
int variable_name;




Float data type declares a variable that can store numbers containing a decimal number. The keyword used to declare a variable of float type is “float”.

Syntax:
float variable_name;




Double data type also declares variable that can store floating point numbers but gives precision double than that provided by float data type. Thus, double data type are also referred to as double precision data type. The keyword used to declare a variable of double type is “double”.

Syntax:
double variable_name;




Character data type declares a variable that can store a character constant. Thus, the variables declared as char data type can only store one single character. The keyword used to declare a variable of character type is “char”.

Syntax:
char variable_name;




Unlike other primitive data types in C++, void data type does not create any variable but returns an empty set of values. Thus, we can say that it stores null.

Syntax:
void variable_name;


 





bE driveN wiTh puRpOse, Be r313n71355 in your alιgnмenт;
with excellence.
pAy n0 mInd to the ∂ιsιмραssισηε∂ เ๓ק๏tєภt ђคtєгร

.. нoolιgan
Reply With Quote Share on facebook
Sponsored Links
(#2)
Old
Princess Urwa Princess Urwa is offline
 


Posts: 8,345
My Photos: ()
Country:
Star Sign:
Join Date: Jul 2013
Gender: Female
Default Re: Primitive Data Types In C++ - >>   Show Printable Version  Show Printable Version   Email this Page  Email this Page   04-04-2014, 03:28 PM

thanx for sharing

 



[SIGPIC][/SIGPIC]
(#3)
Old
AYAZ's Avatar
AYAZ AYAZ is offline
 


Posts: 12,370
My Photos: ()
Country:
Star Sign:
Join Date: Aug 2008
Location: Karachi
Gender: Male
Default Re: Primitive Data Types In C++ - >>   Show Printable Version  Show Printable Version   Email this Page  Email this Page   04-04-2014, 04:06 PM

Thanks, baki sab tou samj agaye bas yeh void ka samj nahi aya yeh kia karta hie

 







ALLAH FARMATA HAI :
AEY BANDEY JO HUA
WO ACHA HUA .
JO HORAHA HAI ACHA HO RAHA HAI.
JO HOGA WO BHI ACHA HOGA.
TERA KIYA GAIYA JO TU ROTA HAI
TU KIA LAYA JO TU NE KHO DIYA.
JO LIYA YAHIN (DUNYA) SEI LIYA
JO DIYA YAHIN (DUNYA) PE DIYA
JO AAJ TERA HAI PEHLAY KISI AUR KA THA
AUR KAL KISI AUR KA HOGA.
TABDEELI KAINAAT KA MAMOOL HAI
BAS TU WO JAMA KAR JO TU SATH LEI KAR JANEY WALA HAI
YANI NAIK AMAAL.


(#4)
Old
PRINCE SHAAN PRINCE SHAAN is offline
 


Posts: 7,688
My Photos: ()
Country:
Join Date: Jul 2010
Location: PAKISTAN
Gender: Male
Default Re: Primitive Data Types In C++ - >>   Show Printable Version  Show Printable Version   Email this Page  Email this Page   04-04-2014, 07:51 PM

Thanks for nice sharing...................

 

(#5)
Old
pakeeza's Avatar
pakeeza pakeeza is offline
 


Posts: 28,336
My Photos: ()
Country:
Star Sign:
Join Date: Jan 2012
Location: Maa ki duaon mey
Gender: Female
Default Re: Primitive Data Types In C++ - >>   Show Printable Version  Show Printable Version   Email this Page  Email this Page   04-04-2014, 08:27 PM

Thnks for SharinG

 



Be Positive... Everything Gonna be Alright

(#6)
Old
Morash's Avatar
Morash Morash is offline
 


Posts: 17,781
My Photos: ()
Country:
Star Sign:
Join Date: Jul 2010
Location: ▌║█║▌│█│║▌║
Gender: Male
Default Re: Primitive Data Types In C++ - >>   Show Printable Version  Show Printable Version   Email this Page  Email this Page   04-07-2014, 02:05 AM

Thanks All ..

 





bE driveN wiTh puRpOse, Be r313n71355 in your alιgnмenт;
with excellence.
pAy n0 mInd to the ∂ιsιмραssισηε∂ เ๓ק๏tєภt ђคtєгร

.. нoolιgan
Post New Thread  Reply

Bookmarks

Tags
data, primitive, types

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blood Types (‘“*JiĢäR*”’) Miscellaneous 5 11-19-2013 08:40 AM
Two types Humaila Hadees Shareef 6 02-03-2012 10:15 PM
two types persons........ kashan memon Urdu Sms 10 11-12-2011 10:11 PM
Types of man AYAZ Jokes 9 10-11-2011 12:00 AM
: Types Of Janaat : !~*AdOrAbLe*~! Islamic Issues And Topics 4 04-27-2011 12:39 AM


All times are GMT +5. The time now is 03:26 PM.
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.

All the logos and copyrights are the property of their respective owners. All stuff found on this site is posted by members / users and displayed here as they are believed to be in the "public domain". If you are the rightful owner of any content posted here, and object to them being displayed, please contact us and it will be removed promptly.

Nav Item BG