Answers for "c++ variable type"

C++
11

c++ declare variable

std::string str = "text";	// stores a string
int    foo = 3;				// stores any integer
float  bar = 3.14;			// stores 32 bit number
double baz = 3.14159265;	// stores 64 bit number
Posted by: Guest on January-18-2020
0

c++ variable type

// Example
std::cout << "Data-type = " << typeid(YourVariable).name() << "\n";
  
// Syntax
typeid(YourVariable).name()
Posted by: Guest on May-05-2021
0

define type c++

typedef unsigned int u_int; //giving 'unsigned int' a name of u_int
Posted by: Guest on November-29-2020

Browse Popular Code Answers by Language