Aanchal S
2
Q:

casting C++

int main()
{
  short a = 2000;
  int b;
  b = (int)a; // c-like cast notation
  b = int(a); // functional notation
}
1

New to Communities?

Join the community