</p> 在上述代滤鱿脯函数有一个int型的形参。若是④,其意义与①不异,上述代码应写成“int* ptr[10];”,即 ptr是一个有10个元素的数组,数组元素是指向整型变量的指针。
" \/ h8 K/ E3 U! R, ^ 【解】二维数组界说有多种赋初值的法子,问题给出的代码是按行给数组的部门元素赋初值。它们分袂是w[0][0]=0.w[0][1]=1、w[1] [1]=2.w[1][1]=4,w[2][0]=5,w[2][1]=8。按照商定,未指定初值的元素自动置全0值。指针变量p是一个指向具有四个 int型元素的一维数组的指针,界说时的初值使它指向数组W的第一行。①的代码,*w[1]+1中的W[l]是指向 w[l][0]的指针,*w[1] 就是w[1][0],其值是2,*w[1]+l的值是3。②的代码是逗号表达式,“p++,*(p+1)”先使p指向数组w的第二行,*(p+l)中的 p+l是指向数组w的第三行,*(p+1)是指针值,指向数组w的第三行的第一个元素,即&w[2][0]. ③的代码w[2][2]引用数组W第三行的第三列元素,其值是0。④的代码p[1][l]引用数组W第二行的第二列元素w[1][1],其值是 4。所以解答是@。
' H7 P+ K2 `% S4 LNetworks can be interconnected by different devices in the physical layer networks can be connected by _(1)_ or hubs .which just move the bits from one network to an identical network. One layer up we find bridges and switches which operate at data link layer. They can accept _(2)_ examine the MAC address and forward the frames to a different network while doing minor protocol translation in the process in me network layer ,we have routers that can connect two networks, If two networks have _(3)_ network layer, the router may be able to translate between the packer formats. In the transport layer we find transport gateway, which can interface between two transport connections Finally, in the application layer, application gateways translate message _(4)_ .As an example, gateways between Internet e-mail and X.400 e-mail must _(5)_ the e-mail message and change various header fields.
6 ]& o/ v" g! Y7 k8 w4 Z (1)A.reapers B.relays C.packages D.modems
- w- {( }) Y+ t/ R$ P% ^4 G (2)A.frimes B.packets C.packages D.cells
; Q( B; v A+ c: K5 \1 _. J (3)A.special B.dependent C.similar D.dissimilar
' F: I' M% r" o" C+ s+ h7 B* o, a; e (4)A.syntax B.semantics C.language D.format
9 Q3 x! N$ O' g, B$ g1 R( p4 R7 q) \ (5)A.analyze B.parse C.delete D.create3 Z: X' d# ~8 ~% x
参考谜底:A A D B B |