?? 78.c
字號:
#include<stdio.h>
struct node
{
int i:31;
int k:31;
int j:3;
double b;
} lk;
struct node1
{
int i:8;
int j:4;
int k:3;
double b;
}kll;
void text()
{
int *p;
char str[100];
printf("%d\n",m(3+5));
p=malloc(100);
printf("%d\n",sizeof(p));
printf("%d\n",sizeof(str));
printf("%d\n",sizeof(lk));
printf("%d\n",sizeof(kll));
}
int m(int x)
{
return 3*x*x;
}
/*#include<stdio.h>
#include<string.h>
#include<malloc.h>
void GetMemory(char **p,int num)
{
*p=(char *)malloc(num);
//return p;
}
main()
{
char *str=NULL;
GetMemory(&str,100);
strcpy(str,"hello");
printf("%s",str);
}
*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -