Answers for "types 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
2

variables in python

VarName = "Value"
VarName = 56
VarName = True
Posted by: Guest on March-25-2020

Browse Popular Code Answers by Language