1 2 3 4 5 #include <stdlib.h> 6 7 int main ( void ) 8 { 9 volatile double d; 10 volatile float f; 11 double* dp = malloc(sizeof(double)); 12 float* fp = malloc(sizeof(float)); 13 int* ip = (int*)0x12345678; 14 d += 1.0; 15 f += 10.0; 16 *dp += ( d > 0.1 ? 2.0 : 3.0 ); 17 *fp += ( f > 0.1 ? 20.0 : 21.0 ); 18 free(dp); 19 free(fp); 20 *dp += 3.0; 21 *fp += 30.0; 22 free(ip); 23 ip = malloc(sizeof(int)); 24 * ((double*)ip) = 1.2 + d; 25 return 0; 26 } 27