Début TP13
This commit is contained in:
9
DEV1.1/TP13/conversion2.c
Normal file
9
DEV1.1/TP13/conversion2.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
long long int x = 4614256656552045848LL,n=x/2;
|
||||
double* p = (double*) &n;
|
||||
printf("π = %f\n", *p);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user