Hey, where is the difference between the two questions?

zhaozj2021-02-16  153

Test 1

Main ()

{INT X, (* P) ​​(int, int);

p = funa;

X = SUB (P, 9, 3);

X = SUB (FUNB, 8, 3);

Printf (% d / n ", x);

}

Funa (int A, int b)

{RETURN A * B;}

Funb (int A, int b)

{RETURN A% B;}

SUB (int x, int y)

{RETURN (* T) (x, y);

Test 2

Main ()

{INT X, (* P) ​​(int, int);

p = funa;

X = SUB (P, 9, 3);

X = SUB (FUNB, 8, 3);

Printf (% d / n ", x);

}

Funa (int A, int b)

{RETURN A * B;}

Funb (int A, int b)

{RETURN A% B;}

SUB (int x, int y)

{RETURN (* T) (Y, X);

转载请注明原文地址:https://www.9cbs.com/read-8910.html

New Post(0)