In C, what is the result of the expression (5 & 3)?
- 0
- 1
- 3
- 5
In C, the '&' operator is the bitwise AND operator. When you perform (5 & 3), it bitwise ANDs the binary representation of 5 (0101) and 3 (0011). The result is 0001, which is 1 in decimal.
Loading...
Related Quiz
- You are debugging a C program and notice that a variable intended to store large numbers is not holding the values correctly. What might be the issue with the data type used?
- In C, the ________ function is used to write a string to a file.
- You're developing an embedded system with limited memory and need to define several constants representing the states of a system. Which C construct would be most appropriate to use?
- What is a key characteristic of a union in C?
- What is the primary purpose of structures in C programming?