CrazyEngineers
  • coding mania

    bugade Anu

    Member

    Updated: Oct 26, 2024
    Views: 1.2K
    How to write a C program to add or substract numbers without making use of arithmetic operators??
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Abhishek Rawal

    MemberMar 12, 2015

    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.
    Are you sure? This action cannot be undone.
    Cancel
  • rahul69

    MemberMar 12, 2015

    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 😀
    Are you sure? This action cannot be undone.
    Cancel
  • Priyam Gupta

    MemberMar 12, 2015

    Using shift and bitwise operators, you can do that.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register