#include <stdio.h>
int main(int argc, char const *argv[])
{
int a = 100;
int (*p1);
p1 = &a;
a = 1000;
*p1 = 1000;
char ch = 'w';
char (*p2);
p2 = &ch;
ch = 'x';
*p2 = 'x';
float f [5] = {1,2,3,4,5};
float (*p3) [5];
p3 = &f;
f [2] = 30;
(*p3)[2] = 30;
int sumup (int a, float b);
int (*p4) (int a, float b);
p4 = &sumup;
sumup(100, 3.141592654872499);
(*p4)(100, 3.141592654872499);
/
//int (* p4 ) (int a, float b);
int (* (*p5) ) (int a, float b);
p5 = &p4;
(* p4 )(100, 3.141592654872499);
(* (*p5) )(100, 3.141592654872499);
int *p = malloc(100); // 匿名内存
struct node *q = malloc(sizeof(struct node));
return 0;
}
int main(int argc, char const *argv[])
{
int a = 100;
int (*p1);
p1 = &a;
a = 1000;
*p1 = 1000;
char ch = 'w';
char (*p2);
p2 = &ch;
ch = 'x';
*p2 = 'x';
float f [5] = {1,2,3,4,5};
float (*p3) [5];
p3 = &f;
f [2] = 30;
(*p3)[2] = 30;
int sumup (int a, float b);
int (*p4) (int a, float b);
p4 = &sumup;
sumup(100, 3.141592654872499);
(*p4)(100, 3.141592654872499);
/
//int (* p4 ) (int a, float b);
int (* (*p5) ) (int a, float b);
p5 = &p4;
(* p4 )(100, 3.141592654872499);
(* (*p5) )(100, 3.141592654872499);
int *p = malloc(100); // 匿名内存
struct node *q = malloc(sizeof(struct node));
return 0;
}