Answers for "type of variables in c++"

C++
0

c++ variable type

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

variabvles in c++

#include <iostream>

using namespace std
  
int main{
	int x = 3;
    float g = 4.0;
    long h = 1234567;
    double j = 1237886.099;
    cout<<x<<endl;
    cout<<h<<endl;
    cout<<g<<endl;
    cout<<j<<endl;
}
Posted by: Guest on June-19-2020
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