Given an array of 100 integers, which of the following loop statements uses pointer arithmetic to process all 100 entries?
A. for (pWalk = ary; pWalk < pWalk + 99; pWalk++) ...
B. for (pWalk = ary; pWalk < pWalk + 100; pWalk++) ...
C. for (pWalk = ary; pWalk < pWalk + 100; pWalk + 1) ...
D. for (pWalk = &ary; pWalk < pWalk + 99; pWalk++) ...
E. for (pWalk = &ary; pWalk < pWalk + 100; pWalk++) ...
Answer: A
You might also like to view...
The ____ data type is used for linked or embedded objects that are created in another program.
A. Import B. Lookup C. OLE Object D. Hyperlink
Which of the following are valid identifiers?
i. R3D3 ii. per-capita iii. phone# iv. ice_cream v. 92_aardvarks a. i, ii, iv, v b. i, iv c. i, ii d. ii, iv, v e. All are valid.
When cell C3 containing the formula =B6*C8 is copied to cell D2, the formula in cell D2 is ________
A) =B6*C8 B) =C5*D8 C) =B6*B7 D) =C5*D7
Match each of the end-of-chapter materials with its feature.
A. Named after the Hawaiian word for quick. B. Users create the content. C. Responsible for retrieving the requested information from the database. D. Can be used to link to a specific article on a blog. E. Dedicated blog search engine. F. Blog directory Web site. G. Google's advertising service. H. Available to the public for free. I. Contains options for specifying basic information about a blog. J. Format useful for line art, basic screen shots, and drawings.