#include<iostream> using namespace std; int f(int a) { int b = 0; static int c = 3; a = c++,b++; return (a); } int main() { int a = 2, i, k; for (i = 0; i < 2; i++) k = f(a++); printf(" % d\n", k); return 0; }
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题