C++ data types

          

Interview questions

C++ data types


<<Previous  Next>>
Explain numeric, character and boolean data types.

Numeric: This is a fundamental type provided by C++ language. Integers, Floating point types come under this......................

What is Typecasting? Explain with examples.

Typecasting: C++ is very strict about type compatibility. Different variable types must be cast when their values are assigned to each other. Type cast operator is used for explicit type conversion of variables.......................

Explain :: operator with an example.

:: Operator: ‘::’ is known as Scope Resolution Operator. C++ is a block structured language. Different program modules are written in various blocks. Same variable name can be used in different blocks......................

What is const qualifier? Explain with an example.

The qualifier const can be applied to the declaration of any variable to indicate that its value will not be changed. Once a variable is declared with const qualifier, it no longer remains a variable (i.e. its value can not be changed). A const must be initialized with some value.........................

<<Previous  Next>>  



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring