C coding to evaluate an arithmetic expression
-
Need c coding for the below scenario Case 1: Input: string 1: -(a+b+c) String 2: -a-b-c Output: True Case 2: Input: string 1: -(a-b) String 2: -a-b Output: False
-
Need c coding for the below scenario Case 1: Input: string 1: -(a+b+c) String 2: -a-b-c Output: True Case 2: Input: string 1: -(a-b) String 2: -a-b Output: False
Post what you have tried and try to ask specific question(s). You're not likely to find someone that will just write it for you.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
-
Need c coding for the below scenario Case 1: Input: string 1: -(a+b+c) String 2: -a-b-c Output: True Case 2: Input: string 1: -(a-b) String 2: -a-b Output: False
Hint count the minus signs in your expanded string
In vino veritas
-
Need c coding for the below scenario Case 1: Input: string 1: -(a+b+c) String 2: -a-b-c Output: True Case 2: Input: string 1: -(a-b) String 2: -a-b Output: False