PFC-quiz8 - thi trc nghim PFC- Quiz8 - slot 29 (10') Ghi...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Đ thi tr c nghi m PFC- Quiz8 - slot 29 (10') Ghi chú: Nh ng câu không ghi đi m đ c hi u là 1 đi m. ượ 8.01. (0.5 đi m) Which one of the following functions is the correct choice for copying blocks of binary data that are of arbitrary size and position in memory? memset() strncpy() strcpy() memmove() memcpy() đúng 8.02. (0.5 đi m) Consider the following two statements: char buf [] = "Hello world!"; char * buf = "Hello world!"; In terms of code generation, how do the two definitions of buf, both presented above, differ? The first definition certainly allows the contents of buf to be safely modified at runtime; the second definition does not. The first definition is not legal because it does not indicate the size of the array to be allocated; the second definition is legal. The first definition is not suitable for usage as an argument to a function call; the second definition is. They do not differ -- they are functionally equivalent.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/05/2012 for the course PFC 101 taught by Professor Abc during the Spring '11 term at Hanoi University of Technology.

Page1 / 4

PFC-quiz8 - thi trc nghim PFC- Quiz8 - slot 29 (10') Ghi...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online