eighth.c 209 Bytes
Newer Older
Alan Marchiori's avatar
Alan Marchiori committed
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>

int main(int argc, char* argv[]) {

	float pi = 3.1415926;
	char *pf = (char*) &pi;
	int i;

	printf("pi= %f\n\n", pi);

	for (i=0; i<4; i++) {
12
		printf("pf[%d]= %02hhx\n", i, pf[i]);
Alan Marchiori's avatar
Alan Marchiori committed
13
14
	}
}