下面程序的运行结果是________。#includeint main( ){void f( int x , int y ) ;int a = 1 , b = 2 ;f( a , b ) ;printf( "a=%d,b=%d\n" , a , b ) ;return 0 ;}void f( int x , int y ){x = 100 ;y = 200 ;}
查看答案
下面程序的运行结果是________。#includeint main( ){int f1( int x , int y ) ;int a = 11 , b = 12 ,c ;c = f1( a , b ) ;printf( "a=%d,b=%d,c=%d\n" , a , b ,c ) ;return 0 ;}int f1( int x , int y ){int f2( int , int ) ;int c ;x = x * 2 ;y = y * 2 ;c = f2( x , y ) ;return c*2 ;}int f2( int a , int b ){int c ;c = ( a + b ) % 3 ;return c ;}
下面程序的运行结果是________。#includeint main( ){void increment( ) ;increment( ) ;increment( ) ;increment( ) ;return 0 ;}void increment( ){int x = 0 ;x += 1 ;printf( "%d" , x ) ;}
(程序运行题)下面程序的运行结果是________。#includeint main( ){int f1( int x , int y ) ;int a = 11 , b = 12 ,c ;c = f1( a , b ) ;printf( "a=%d,b=%d,c=%d\n" , a , b ,c ) ;return 0 ;}int f1( int x , int y ){int f2( int , int ) ;int c ;x = x * 2 ;y = y * 2 ;c = f2( x , y ) ;return c*2 ;}int f2( int a , int b ){int c ;c = ( a + b ) % 3 ;return c ;}
(程序运行题)下面程序的运行结果是________。#includeint main( ){int fun( int n ) ;printf( "%d\n" , fun( 3 ) ) ;return 0 ;}int fun( int n ){if( n ) return fun( n - 1 ) + n ;else return 0 ;}