🌈 style:

This commit is contained in:
lzy
2024-05-26 15:39:14 +08:00
parent 6f28a3384a
commit a57bbdb4c1
156 changed files with 765 additions and 770 deletions

View File

@@ -96,10 +96,10 @@ void print_star(void)
printf("[%s]i=%d\n", __FUNCTION__, i);
}
int main()
int main( )
{
for (i = 0; i < 5; i++)
print_star();
print_star( );
printf("\n");
// out:

View File

@@ -5,11 +5,11 @@
static int i = 10;
int main()
int main( )
{
printf("[%s]i=%d\n", __FUNCTION__, i);
// func();
call_func();
call_func( );
exit(0);
}

View File

@@ -13,5 +13,5 @@ static void func(void)
void call_func(void)
{
func();
func( );
}

View File

@@ -5,10 +5,10 @@
int i = 10;
int main()
int main( )
{
printf("[%s]i=%d\n", __FUNCTION__, i);
func();
func( );
exit(0);
}

View File

@@ -1,11 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
#define PI 3.14
#define ADD 2 + 3
#define PI 3.14
#define ADD 2 + 3
#define ADD1 (2 + 3)
#define MAX(a, b) (a > b ? a : b)
#define MAX(a, b) (a > b ? a : b)
#define MAX1(a, b) ((a) > (b) ? (a) : (b))
#define MAX2(a, b) \
@@ -25,7 +25,7 @@ int max(int a, int b)
return a > b ? a : b;
}
int main()
int main( )
{
// printf("%d\n", ADD * ADD);
// 相当于 2+3*2+3

View File

@@ -1,8 +1,8 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
int main()
int main( )
{
bool a = false;
printf("a = %d\n", a);