重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 其他> 其他
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[单选题]

一个main(inta,char*argv[])函数带参数,可执行文件名为prog.exe,若命令行输入:progabcdefg123则printf(“%d,%s\n”,a,argv[1]);的结果是()

A.3,prog

B.4,prog

C.3,abcd

D.4,abcd

答案
查看答案
更多“一个main(inta,char*argv[])函数带参数,可执行文件名为prog.exe,若命令行输入:progabcdefg123”相关的问题

第1题

main方法是java Application 程序执行的入口点,关于main方法的方法头以下()是合法的。
A.public static void main()

B.public static void main(String args[])

C.public static int main(string [] ar

D.public void main(string arg[])

点击查看答案

第2题

下列程序的字符串中各单词之间有一个空格,则程序的输出结果是______。 include <string.h>
main() { char strl[]="How do you do", *p1=strl strcpy(strl+strlen(strl)/2,"es she"): printf("%s\n",p1): }

点击查看答案

第3题

下列程序的字符串中各单词之间有一个空格,则程序的输出结果是【 】。 include <stdio.h>
include <string.h> main() { char str1[]="How do you do", *p1=str1; strcpy(str1+strlen(str1)/2,"es she"); printf("%s\n",p1); }

点击查看答案

第4题

下面程序的功能是将一个字符串str的内容颠倒过来,请填空。 include<string.h> main()

下面程序的功能是将一个字符串str的内容颠倒过来,请填空。 include<string.h> main() { inti,j,【 】;char str[]={"1234567"}; for(i=0,j=strlen(str)【 】;i<j;i++,j--) { k=str[i];str[i]=str[j];str[j]=k;} printf("%s\n",str);}

点击查看答案

第5题

为以下的C程序构造一个可能的运行时环境的组织结构。 int a[10]; char*a="hello";
int f(int i,int b[]) {int j=1; A:{int i=J; char c=b[i]; } } void g(char*s) {char c=s[10]; B:{int a[5]; … ) } main() {int x=1; x=f(x,a); g(a); return 0; } (1)在进入函数f中的块A之后。 (2)在进入函数g中的块B之后。

点击查看答案

第6题

下面程序的功能是将一个字符串str的内容颠倒过来,请填空。 main() { int i,j,【 】;ch

下面程序的功能是将一个字符串str的内容颠倒过来,请填空。 main() { int i,j,【 】;char str[]={"1234567"); for(i=0,j=strlen(str) 【 】;i<j;i++,j--) {k=str[i];str[i]=str[j];str[j]=k;} printf("%s\n",str); }

点击查看答案

第7题

已知如下代码:public class Test{ static long a[] = new long[10]; public static void main ( String arg[] ) { System.out.println ( a[6] ) ; } } 则下面()语句是正确的。
A.When running, some error will occur.

B.When compile, some error will occur.

C.Output is null.

D.Output is 0.

点击查看答案

第8题

执行下面的程序段,输出结果为【 】。 public class Q { public Static Void main(String arg

执行下面的程序段,输出结果为【 】。 public class Q { public Static Void main(String args[]) { int anar[]=new int[5]; System.out.println(anar[0]); } }

点击查看答案

第9题

已知如下类说明: public class Test { private float f = 1.0f; int m = 12; static int n=1; public static void main(String arg[]) { Test t = new Test(); // 程序代码… } } 如下哪个使用是正确的?()

A.t.f

B.this.n

C.Test.m

D.Test.n

点击查看答案

第10题

下面程序把从终端读入的文本(用作为文本结束标志)复制到一个名为file.txt的新文件中。补足所缺语

下面程序把从终端读入的文本(用作为文本结束标志)复制到一个名为file.txt的新文件中。补足所缺语句。 main() { char ch; FILE*fp; if((fp=fopen(______))=NULL)exit(0); while((ch=getchar())!=) fputc(ch,fp); ______; }

点击查看答案

第11题

以下程序把从终端读入的文本(用@作为文本结束标志)输出到一个为out.dat的新文件中,请填空。 #include<st

以下程序把从终端读入的文本(用@作为文本结束标志)输出到一个为out.dat的新文件中,请填空。

#include<stdio.h>

main()

{FILE*fp;char ch;

if((fp=______)==NULL) exit(0);

while((ch=getchar())!='@')

fputc(ch,fp);

fclose(fp);

}

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝