Ok so… for these mastery I did some research .. because I didnt knew what a “basic type” was in c++… so here is what i found:<\/p>\n
Fundamental data types are basic types implemented directly by the language that represent the basic storage units supported natively by most systems.<\/p>\n
They can mainly be classified into:<\/p>\n
'A'<\/code> or '$'<\/code>. The most basic type is char<\/code>, which is a one-byte character.<\/li>\n- Integer types:<\/b> They can store a whole number value, such as
7<\/code> or 1024<\/code>. They exist in a variety of sizes, and can either be signed<\/i> or unsigned<\/i>, depending on whether they support negative values or not.<\/li>\n- Floating-point types:<\/b> They can represent real values, such as
3.14<\/code> or 0.01. (We have only seen double, but alse exist float)<\/code><\/li>\n- Boolean type:<\/b> The boolean type, known in C++ as
bool<\/code>, can only represent one of two states, true<\/code> or false<\/code>. (THESE WE HAVE NOT SEEN IT)<\/li>\n- Where i found these info http:\/\/www.cplusplus.com\/doc\/tutorial\/variables\/…<\/a>;<\/li>\n<\/ul>\n
So lets see each one of them closely..<\/p>\n
1.- A char type: they always must be inside ”… and they can be any “character” you want:<\/p>\n
2.-A int type: these is usefull when the value you are assigning is a integer number, no need of any special character.<\/p>\n
3.Floating point type: these is usefull when the value you are assigning is a decimal point.<\/p>\n
\n- Red arrow: assigning a diferent types to each variable<\/li>\n
- Yellow arrow: asigning each variable a different value (depending on their type)<\/li>\n
- Green arrow: The final result.<\/li>\n<\/ul>\n
<\/a><\/p>\n<\/a><\/p>\n <\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"Ok so… for these mastery I did some research .. because I didnt knew what a “basic type” was in c++… so here is what i found: Fundamental data types are basic types implemented directly by the language that represent the basic storage units supported natively by most systems. They can mainly be classified into:… More Mastery 9: Basic types and their use in C++<\/span><\/a><\/p>\n","protected":false},"author":287,"featured_media":24194,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[372,39],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24196"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/287"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=24196"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24196\/revisions"}],"predecessor-version":[{"id":24197,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24196\/revisions\/24197"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/24194"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=24196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=24196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=24196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}