(程序运行题)下面程序的运行结果是_______。#includeint main( ){int i , j , x = 0 ;for( i = 0 ; i < 2 ; i++ ){x++ ;for( j = 0 ; j <= 3 ; j++ ){if( j % 2 )continue ;x++ ;}x++ ;}printf( "x=%d\n" , x ) ;return 0 ;}
查看答案
下面程序的运行结果是________。#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 ;}