填空题

下面程序和运行运行结果是【 】。   #define N 10   #define s (x) x * x   #define f(x) (x * x)   main( )   { iht i1,i2;    i1 = 1000/s(N); i2 = 1000/f(N);    printf("%d %d\n",i1,i2);   }

【参考答案】

1000 10
<上一题 目录 下一题>
热门 试题

填空题
请在以下程序第一行的下划线处填写适当内容,使程序能正确运行。【 】( double,double);main( ){ double x,y;scanf( %lf%lf ,&x,&y);printf( %lf n ,max(x,y));}double max(double a,double b){ return(a>b a:b); }
填空题
以下程序运行后输入:3,abcde,则输出结果是【 】#include <string.h>move(char *str, int n){ char temp; int i;temp=str[n-1];for(i=n-1;i>0;i--) str[i]=str[i-1];str[0]=temp;}main( ){ char s[50]; int n, i, z;scanf( %d,%s ,&n,s);z=strlen(s);for(i=1; i<=n; i++= move(s, z);printf( %s n ,s);=
相关试题
  • 数据的逻辑结构有线性结构和【 】两大类。
  • 数据库系统阶段的数据具有较高独立性,数据...
  • 在面向对象的程序设计中,类描述的是具有相...
  • 在算法正确的前提下,评价一个算法的两个标...
  • 计算机网络分为广域网和局域网,因特网属于...