• ips007
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

Hi,

I want to evaluate my prefix expression. For this I am using logic in which

1. I reversed the expression, (on reverse it's not converted to post fix)

2. And then evaluating this reversed expression using stack.

 

Is my logic correct?

Will this cause any error / invalid evaluation?

 

Thanks in advance... :)

  • December 13, 2011
  • Like
  • 0