Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ Function-style Casting

// initializing int variable
int num_int = 26;

// declaring double variable
double num_double;

// converting from int to double
num_double = double(num_int);
 
PREVIOUS NEXT
Tagged: #Casting
ADD COMMENT
Topic
Name
1+9 =