BUT2/DEV/DEV1.1/TP_adresses/q4.c

16 lines
341 B
C
Raw Normal View History

2023-10-23 13:23:36 +02:00
#include <stdlib.h>
#include <stdio.h>
int main(void) {
long long int n1 = 4614256656552045848LL;
double* p1 = (double*) &n1;
double n2 = *p1;
n2 = n2*2;
long long int* p2 = (long long int*) &n2;
long long int n3 = *p2;
double* p3 = (double*) &n3;
printf("π = %f\n", *p3);
return EXIT_SUCCESS;
}
//4614256656552045848LL