implement OR gate without using any bitwise operator.



implement OR gate without using any bitwise operator...

Answer / senthil

c = a + b

Is This Answer Correct ?    13 Yes 9 No

Post New Answer

More C Interview Questions

main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.

1 Answers   Cisco,


Are the expressions * ptr ++ and ++ * ptr same?

0 Answers  


write a program to find the sum of the array elements in c language?

24 Answers   ICT, Infosys, Wipro,


write a program that will read the temperature in Celsius and convert that into Fahrenheit.

1 Answers  


int i=10; printf("%d %d %d", i, i=20, i);

0 Answers  






pierrot's divisor program using c or c++ code

0 Answers  


What is difference between structure and union in c?

0 Answers  


What is the difference between %d and %i?

0 Answers  


What is assert and when would I use it?

0 Answers  


Does c have function or method?

0 Answers  


what will be the output of" printf("%d%d",scanf("%d% d",&a&b));"

4 Answers  


The operation of a stair case switch best explains the a) or operation b) and operation c)exclusive nor operation d)exclusive or operation Which of the following is/are syntactically correct? a) for(); b) for(;); c) for(,); d) for(;;);

1 Answers   HCL, Public Service Commission,


Categories