Wednesday, February 4, 2009

Solutions Of C queries

SOLUTIONS TO C QUERIESThe solution of the queries is as per their numbers
1.
o/p:i=0
In the expression !i>40 not has higher precedencethan >Forward2.
o/p:1
#define macro replaces int by char3.
o/p:56
i++ will be given 7 for the first timeand then it is incremented ,so 7*8=56
4.
o/p:6
\ cannot be considered as character and\n is for next line5.
o/p:0 0 1 3 1
AND operator has higher precedence over logical OR,so the expression i++&&j++&&k++ is executed first ,gives 0 and 02 gives 1 so m=1
6.
LINKER ERRORMemory allocated in other program andaddress given in current program

1 comment: