• 2022-06-10
    写出下列程序的执行结果是:__________________。[br][/br]#include[br][/br]using namespace std;[br][/br]int f2( int, int );[br][/br]int f1( int a , int b )[br][/br]{ [br][/br] int c ;[br][/br] a += a ; b += b ;[br][/br] c = f2( a+b , b+1 );[br][/br] return c;[br][/br]}[br][/br]int f2( int a , int b )[br][/br]{ [br][/br] int c ;[br][/br] c = b % 2 ;[br][/br] return a + c;[br][/br]}[br][/br]void main()[br][/br]{ [br][/br] int a = 3 , b = 4;[br][/br] cout [< f1( a , b ) << endl;
  • 举一反三