Exercise 4-14

xiaoxiao2021-03-06  53

#include

/ * Define macro SWAP (T, X, Y) to exchange two parameters of T type * / # define swap (t, x, y) do {t temp = x; x = y; y = TEMP;} while 0) INT main (void) {INT A = 21, B = 23; SWAP (INT, A, B); Printf ("% D / T% D", A, B); return 0;}

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

New Post(0)