Answers for "display type of variable c++"

C++
3

print data type of a variable in c++

int x = 5;
typeid(x).name();
//output: i
// i stands for int
Posted by: Guest on September-11-2020
1

how to display a variable in c++

std::cout << variableName;
Posted by: Guest on September-02-2021

Browse Popular Code Answers by Language