Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Draw an expression tree for " k p * t / m n r - $ + ."


What does ıt mean " $ " symbol .

in Data Structure .

What I have tried:

$ ı dont know that symbol meanıng So ı cant tried anything.
Posted
Updated 20-Jan-21 23:43pm

C has no operator "$" - so you will have to go back to your teacher and ask him exactly what it means in this context.
SInce expression trees rely on operator precedence you need to know where each operator "fits" in the scheme of things before you can draw it in.
 
Share this answer
 
Comments
Patrice T 21-Jan-21 5:44am    
Since expression is RPN, one don't have to care about operator priority.
Quote:
What does ıt mean " $ " symbol .

Do you really need to know ?
The '$' look like an operator in this expression, the only mystery is unary or binary.
By the way, I don't know either whet is the '.', since it is not a multiplication.

You may have to do a deduction, because if you have x values, you have x-1 binary operators.

Since expression look like RPN (Reverse Polish Notation), you don't have to care about operators priority.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900