support bazel complie this project and format code.

This commit is contained in:
zhangxing
2023-03-30 00:15:11 +08:00
committed by light-city
parent 1f86192576
commit 3c8a3f259b
641 changed files with 10349 additions and 9523 deletions

View File

@@ -1,16 +1,15 @@
/* Compile code with optimization option */
#include <stdio.h>
#include <stdio.h>
int main(void)
{
const volatile int local = 10;
int *ptr = (int*) &local;
int main(void) {
const volatile int local = 10;
int *ptr = (int *)&local;
printf("Initial value of local : %d \n", local);
printf("Initial value of local : %d \n", local);
*ptr = 100;
*ptr = 100;
printf("Modified value of local: %d \n", local);
printf("Modified value of local: %d \n", local);
return 0;
}
return 0;
}