Programming MCQS - QUESTION DETAILS

What is the output of printf("%d", 5 << 2);?
A. 20
B. 10
C. 40
D. 5

'<<' is the left shift operator, 5 << 2 results in 20.

Similar Questions

What is the purpose of the 'volatile' keyword in C?






What does the 'exit()' function do in C?






What is the purpose of the 'do-while' loop in C?






What is the purpose of the 'strncpy' function in C?






What is the purpose of the 'fflush' function in C?






How do you declare a structure in C?






What is the purpose of the 'enum' keyword in C?






How do you define a constant pointer to a constant integer in C?






What is the purpose of the 'strtok' function in C?






How do you declare a constant integer in C?