Which one of the following statements is incorrect on C or C
Which one of the following statements is incorrect on C or C++ which are preferred in embedded design and implementation. A C program is easy to debug than its equivalent assembly program. Mixed C and ASM coding is possible in an ARM based embedded system design. A C program generally can be compiled into more compact machine codes than the same program written in assembly. Compared with assembly, C/C++ are more efficient in software development. Assume a C variable X_Reg is a control register. One of the following C sentences is to clear bit land bit 3 of the register. Which one? X_Reg & = ~((1
Solution
(1) answer is option (c)
Clearly options a,b,d are true so answer is option (c)
(2) answer is option (a)
Here bit 1 and 3 are cleared
(3) answer is option (d)
All options except d are necessary
(4) answer is option (c)
The programmer must take care in parameter passing in assembly functions
(5) answer is option (c)
All other statements are relating to C programming except option (c)
