【简答题】【消耗次数:1】
#include stdio.hint main(){char a[]=I love China!,b[20],*p1,*p2;p1=a;p2=b; for(;*p1!=\0p1++,p2++)*p2=*p1; *p2=\0// printf(string a is:%s\n printf(string b is:%s\n return 0;}以上程序运行结果为string b is:[填空1]。
参考答案:
复制
纠错
相关题目
【简答题】 #include stdio.hint main(){void swap(int *p1,int *p2);int a,b;int*pointer_1,*pointer_2;printf(please enter a and b:scanf(%d,%d,a,pointer_1=pointer_2=if(ab) swap(pointer_1,pointer_2);printf(%d,%d\n,a,b);return 0;} void swap(int *p1,int *p2){int temp;temp=*p1;*p1=*p2;*p2=temp;}若输入5,9,则输出为[填空1]。
【简答题】 #include stdio.hint main(){void swap(int *p1,int *p2);int a,b;int*pointer_1,*pointer_2;printf(please enter a and b:scanf(%d,%d,a,pointer_1=pointer_2=if(ab) swap(pointer_1,pointer_2);printf(%d,%d\n,a,b);return 0;} void swap(int *p1,int *p2){int * temp;temp=p1;p1=p2;p2=temp;}若输入5,9,则输出为[填空1]。
【单选题】 指针变量p1、p2类型相同,要使p2、p1指向同一变量,哪一个语句是正确的()。
①  p2=*p1;
②  p2=**p1;
③  p2=p1;
④  p2=*p1;
【单选题】 有以下变量说明,下面不正确的赋值语句是() int a=5,b=10,c; int ?p1=&a,?p2=&b;
①  ?p2=b;
②  p1=a;
③  p2=p1;
④  c=?p1?(?p2)。
【简答题】 #include stdio.hint main(){char *string=I love China!printf(%s\n,string);return 0;}以上程序运行结果为[填空1]。
【判断题】 p1和p2都指向同一个数组元素时,可以执行p1-p2或p1+p2。
①  正确
②  错误
【简答题】 #include stdio.hint main(){char string[]=I love China! printf(%s\n,string); printf(%c\n,string[7]); return 0;}以上程序运行结果为[填空1]。
【判断题】 已知:int *p1, *p2= 由此可知变量a的类型是:int *。
①  正确
②  错误
【简答题】 #includestdio.hint main(){int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;p=a;printf(%d\n,*p);p++;printf(%d\n,*p);}程序输出结果为[填空1]和[填空2]。
【单选题】 若已知一个栈的入栈序列是1,2,3,…,n,其输出序列为p1,p2,p3,…,pn,若pn是n,则pi是( )。
①  i
②  n-i
③  n-i+1
④  不确定
随机题目
【简答题】 Fill in the blanks with the words given below. Change the form if necessary.[mingle; harden; disapproval; due; resonate; instinct; fretful; awkward; suspect; feature]9. His laughter[填空1]among the hollow rocks.
【简答题】 Fill in the blanks with the words or phrases given below. Change the form if necessary.[compromise; doom; due to; financial; rarely; security; source; survey; unique; valid]1. The project was[填空1]right from the beginning.
【简答题】 Fill in the blanks with the words or phrases given below. Change the form if necessary.[evaluate; expand; reveal; fertile; convince; impulse; reach; transfer; concrete; productive; take up; right away; fall asleep; back and forth; take advantage of; try to]9. What she said[填空1]me that I was mistaken.
【简答题】 Fill in the blanks with the words or phrases given below. Change the form if necessary.[evaluate; expand; reveal; fertile; convince; impulse; reach; transfer; concrete; productive; take up; right away; fall asleep; back and forth; take advantage of; try to]3. Every term students are given the opportunity to[填空1]their instructors.
【简答题】 Fill in the blanks with the words or phrases given below. Change the form if necessary.[capture; desperate; turn out; so far; in question; domestic; equivalent; exploit; inspire; apart from; be obsessed by; in that case; promote; intimate; recession; trend; go by; take refuge in]2. Latelythere has been a[填空1]towards hiring younger, cheaper employees.
【简答题】 Fill in the blanks with the words given below. Change the form if necessary.[significant; consequent; conduct; fulfill; assess; competence; obtain; efficiency; convention; charge]4. Julian says he hopes to get a job and find a way to[填空1]a college educatioin.
【简答题】 Fill in the blanks with the words given below. Change the form if necessary.[sharp; sustainable; soar; grim; release; bleak; initiative; insight; negative; alter]7. Millennium Development Goals isa UN[填空1]that aims to reduce socioeconomic problems by 2015.
【简答题】 Fill in the blanks with the words or phrases given below. Change the form if necessary.[evaluate; expand; reveal; fertile; convince; impulse; reach; transfer; concrete; productive; take up; right away; fall asleep; back and forth; take advantage of; try to]2. Thehours that a child plays incompany with his peers[填空1]his life space and provide him with experience in getting along with others.
【简答题】 Translate the following sentence into English.教师首先要考虑的事情之一是唤起学生的兴趣,激发他们的创造力。
【简答题】 Translate the following sentence into Chinese.Just show th clerk a piece of paper with my name written on it