coding mania

How to write a C program to add or substract numbers without making use of arithmetic operators??

Replies

  • Abhishek Rawal
    Abhishek Rawal
    bugade Anu
    How to write a C program to add or substract numbers without making use of arithmetic operators??
    Have you tried thinking about it ? It's quite simple.
    If you've tried it then post the code here and CEans will help you out.

    We surely ain't gonna spoonfeed you.
  • rahul69
    rahul69
    Looks like OP wanted to put it as a quiz and then answer later, or maybe otherwise 😉
    But thing is, what is simple for one may be difficult for other.
    That being said, here is a hint for OP, :One way is Logic gates. Think hard!!!
    U will get it 😀
  • Priyam Gupta
    Priyam Gupta
    Using shift and bitwise operators, you can do that.

You are reading an archived discussion.

Related Posts

A year has passed since Sony sold off its VAIO PC business to a Japanese funding company called Japan Industrial Partners. Today the new owners of company have announced their...
The South Korean giant, Samsung has announced the successor of the Galaxy Win Duos, the Galaxy Win 2 Duos at an event in Sao Paul. As of now, the smartphone...
Extending the vision of a snake like camera to view duct work. I need to look inside 30 feet of small 4 inch round pipe. Can I use some home...
It’s been just few days Motorola launched its Moto E 2nd gen in India, Xiaomi jumped into the market making it difficult for consumers to choose their new gadget. Chinese...
After a lot of speculations and rumours, Google has finally come out and have announced their second version of Chromebook Pixel. The first Chromebook pixel was launched back two years...