🌈 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

@@ -1,9 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
int main()
int main( )
{
int *p;
int* p;
int num = 5;
p = malloc(sizeof(int) * num);

View File

@@ -1,9 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
int main()
int main( )
{
int *p = NULL;
int* p = NULL;
p = malloc(sizeof(int));
if (NULL == p)

View File

@@ -11,7 +11,7 @@
// return;
// }
void *func(int *p, int n)
void* func(int* p, int n)
{
p = malloc(n);
@@ -21,10 +21,10 @@ void *func(int *p, int n)
return p;
}
int main()
int main( )
{
int num = 100;
int *p = NULL;
int* p = NULL;
// func(&p, num);