adplus-dvertising
frame-decoration

Question

a << 1 is equivalent to

a.

multiplying a by 2

b.

dividing a by 2

c.

adding 2 to a

d.

none of the above

Posted under C Programming

Answer: (a).multiplying a by 2

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. a << 1 is equivalent to

Similar Questions

Discover Related MCQs

Q. Assume an unsigned integer occupies 1 byte. Let myVar be an unsigned integer. Then myVar « 1 multiplies myVar by 2 if it is not greater than

Q. In a certain machine, the sum of an integer and its 1's complement is 226 - 1. Then sizeof intl. in bits, will be

Q. Which of the following comments about the preprocessor directive # are correct?

Q. The most significant hit will be lost in which of the following operations?

Q. If the bit pattern corresponding to a signed integer is shifted to the right then

Q. If the word size is 16 bit, then ~0xc5 will be

Q. Preprocessing is typically done

Q. Choose the correct statements.

Q. Consider the following statement.

# define hypotenuse(a, b) sqrt (a * a + b * b ) ;

The macro-call hypotenuse ( a + 2, b + 3) ;

Q. The ascending order of precedence of the bit-wise operators &, ^, | is

Q. The scope of a macro definition

Q. Which of the following comments are correct when macro definition includes arguments?

Q. lint is

Q. The number of possible values of m, such that m & 0x3f equals 0x23 is

Q. cb is a

Q. In what kind of structure for strings, one can easily insert, delete, concatenate and rearrange sustrings?

Q. If space occupied by a null terminated string "S1" and "S2"in "C" are respectively "m" and "n",the space occupied by the string obtained by concentrating "S₁"and "S₂"is always

Q. If space occupied by two strings s1 and s2 in 'C' are respectively m and n, then space occupied by string obtained by concatenating s1 and s2 is always

Q. Length of the string " correct " is

Q. Which of the following comments regarding the reading of a string using scanf( with %s option and gets, is true ?)