In the function conv_unsigned(p, b), what does p and b refers to?

In the function conv_unsigned(p, b), what does p and b refers to?
A. p is the data object to be converted and b is the base of that data object
B. p is the data object to be converted amd b is the bits needed in converted variable
C. p is the parameter to be converted and b is the bits of same parameter
D. p is the type of data to be converted and b is the type of data into which p should be converted
 
Answer: b
Explanation: The function conv_unsigned is used to convert different data types in UNSIGNED type. Two arguments are used in this function which are p and b. p is the data object which we need to convert and b represents the no of bits in UNSIGNED type. So, conv_unsigned(p,b) converts the parameter ‘p’ of INTEGER, SIGNED, UNSIGNED, STD_ULGOIC into UNSIGNED type of size ‘b’ bits.
 

Tìm kiếm

Back
Top