Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

print data type of a variable in c++

int x = 5;
typeid(x).name();
//output: i
// i stands for int
 
PREVIOUS NEXT
Tagged: #print #data #type #variable
ADD COMMENT
Topic
Name
7+4 =