DEV/DEV1.1/TP08:Adresses/conversion.c

10 lines
180 B
C
Raw Permalink Normal View History

2022-11-08 11:29:38 +01:00
#include <stdlib.h>
#include <stdio.h>
int main(void) {
long long int n = 4614256656552045848LL;
double* p = (double*) &n;
*p=*p*2;
printf("2pi = %f\n", *p);
return 0;
}