Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C++
print data type of a variable in c++
Greg Lee
Programming language:
C++
2021-04-04 07:34:10
4
Q:
print data type of a variable in c++
Charlottemiaut
Code:
C++
2021-01-22 23:51:46
typeid(variable).name()
2
Jake
Code:
C++
2021-02-13 06:23:05
int x = 5; typeid(x).name(); //output: i // i stands for int
1
Tags
data
int
variable
type
var
print
Related
print contents of cpp file
print type cpp
how to access the element of string in c++
c++ print string
c++ print variable address
return array of string in function c++
how to check the datatype of a variable in c++
c++ over load oprator to print variable of clas
how to check datatype of a variable in c++
how to print eachh chars in string data type in c++
c++ get type name of object
c++ variable arguments
how to declare string in c++ and taking the input
printf in c++
how to get a letter from the users string in c++
input a string in c++
how to output text in c++
New to Communities?
Join the community