C Programming and Technical Programming Output

class bool test
{
public static void main(string[]args)
{
int result=0;
Boolean b1=new Boolean("true");
Boolean b2=new Boolean("true");
if(b1 equals(b2))
result=result+1000;
system.out.println("result="+result);
}
}


what will be output of this code...
a) result=0
b) result=1000
c) result=2000
d) none

Read Solution (Total 9)

C Other Question

write a prog such that take 'n' as input and print the o/p.
for example if n=3 then o/p is as folows
1
2*2
3*3*3
3*3*3
2*2
1
and if n=6, then
1
2*2
3*3*3
4*4*4*4
5*5*5*5*5
6*6*6*6*6*6
6*6*6*6*6*6
5*5*5*5*5
4*4*4*4
3*3*3
2*2
1
The bitwise operator which is suitable for turning off a particular bit in a number?