【单选题】【消耗次数:1】
若已定义:inta=5,*p;且p=则以下表示中不正确的是()。
a==(*p)
*(p)==a
(*p)==p
*(a)==a
参考答案:
复制
纠错
相关题目
【单选题】 若已定义inta=5;下面对(1)int*p=&a;(2)*p=a;两个语句的正确解释是()
①  语句(1)和(2)中的*P含义相同,都表示给指针变量p赋值
②  语句(1)和语句(2)的执行结果,都是把变量a的地址值赋给指针变量p
③  语句(1)在对p进行说明的同时进行初始化,使p指向a,语句(2)将变量a的值赋给指针变量p
④  语句(1)在对p进行说明的同时进行初始化,使p指向a,语句(2)将变量a的值赋于*p
【单选题】 若已定义:inta[9],*p=a;并在以后的语句中未改变p的值,不能表示a[1]地址的表达式为(  )。
①  p+1
②  a+1
③  a++
④  ++p
【单选题】 已定义以下函数 fun(int*p) {return*p;} 该函数的返回值是()
①  不确定的值
②  形参p中存放的值
③  形参p所指存储单元中的值
④  形参p的地址值
【单选题】 设p为指针变量,则以下表达式正确的是()
①  --p++
②  --++p
③  --(p+5)
④  (p-5)++
【单选题】 设A=,B=P(P(A)),以下不正确的式子是(   )
①  包含于B
②  包含于B
③  包括于B
④  包含于B
【单选题】 若有定义:int*p,k=4;p=以下均代表地址的是()。
①  k,p
②  k,p
③  k,p
④  k,*p
【单选题】 若有说明:int n=2,*p=&n,*q=p,则以下非法的赋值语句是:()
①  p=q
②  *p=*q
③  n=*q
④  p=n
【单选题】 有以下变量说明,下面不正确的赋值语句是() int a=5,b=10,c; int ?p1=&a,?p2=&b;
①  ?p2=b;
②  p1=a;
③  p2=p1;
④  c=?p1?(?p2)。
【多选题】 <p>关于工程发包,如下表述正确的是()。</p>
①  提倡对建筑工程实行总承包,禁止将建筑工程肢解发包
②  禁止建筑工程的发包单位将建筑工程的勘察、设计、施工、设备采购一并发包给一个工程总承包单位
③  建筑工程勘察、设计、施工、设备采购的一项或者多项发包给一个工程总承包单位
④  应当由一个承包单位完成的建筑工程可以肢解成若干部分发包给几个承包单位
⑤  只能将建筑工程勘察、设计、施工、设备采购的一项发包给一个工程总承包单位
【单选题】 若有定义:int a[5],*p=a;则不能正确表示数组元素a[i]的是()。
①  *(a+i)
②  *(p+i)
③  p[i]
④  *p[i]
随机题目
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[expand; abuse; knowledge; narrative; plantation; property; oppressive; extremely; rebel; abolitionist]1. If I calmly pocket the[填空1], Ill be laughed at.
【简答题】 Directions: Fill in the blanks with the phrases given below. Change the form if necessary.[comprise of; vote for; access to; wake up; be hooked to; in the long run; work at; to ones joy; pay off; be associated with]1. Learning a foreign language may be difficult at the beginning, but your hard work will[填空1].
【简答题】 Directions: Translate sentence by using “nothing more than”.2. To you, __________(我也不过是一只狐狸)like a hundred thousand other foxes.
【简答题】 Translate the following sentence into English.无论刮风还是下雨,他都坚持早起在附近的公园跑步。
【简答题】 Translate the following sentence into English.他们终于想出了一个好主意来解决这个问题。
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[integrity; conscience; yield; appoint; assure; ensure; demonstrate; clarify; preserve; scarce]7. Though he walked free from court, his[填空1]kept bothering him for the wrong doing he had done.
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[privilege; component; stagnant; entangle; superficial; arresting; expound; penetrating; indulge; click]1. Their national economy is[填空1].
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[integrity; conscience; yield; appoint; assure; ensure; demonstrate; clarify; preserve; scarce]10. This is the first time that a woman has been[填空1]to the post.
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[chore; talent; crowded; earnings; finance; festive; memorable; sacrifice; smash; reproduction]5. She views physical exercise primarily as an unavoidable[填空1].
【简答题】 Direction: Fill in the blanks with thephrases given below. Change the form if necessary.[set off; after all; attach to; burst into laughter; lean against; teach...a lesson; take off; come to sense; give in to]1. Under no circumtances shall we[填空1]pressures or threats imposed by foreign countries.