Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Explicit conversion casting

short a=2000;
int b;
b = (int) a;    // c-like cast notation
b = int (a);    // functional notation
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #Explicit #conversion #casting
ADD COMMENT
Topic
Name
8+9 =