Can char be a number c++?



Can char be a number c++?..

Answer / Aftab Alam

In C++, a char can represent an ASCII value which is a number. However, it's not a numeric data type like int or float, and it cannot be directly used in mathematical operations without being explicitly cast.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1

5 Answers  


Can the creation of operator** is allowed to perform the to-the-power-of operations?

1 Answers  


const char * char * const What is the differnce between the above two?

11 Answers   TCS,


Which coding certification is best?

1 Answers  


What is input operator in c++?

1 Answers  


What is operator overloading in c++ example?

1 Answers  


What are the main features of c++?

1 Answers  


Differentiate between late binding and early binding. What are the advantages of early binding?

1 Answers  


What is the difference between passing by reference and passing a reference?

1 Answers  


Explain about vectors in c ++?

1 Answers  


Explain the differences between list x; & list x();.

1 Answers  


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

1 Answers  


Categories