Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

casting C++

int main()
{
  short a = 2000;
  int b;
  b = (int)a; // c-like cast notation
  b = int(a); // functional notation
}
 
PREVIOUS NEXT
Tagged: #casting
ADD COMMENT
Topic
Name
3+8 =