381 views
0 votes
0 votes

A designed a language with following features:

+ precedes /

/ precedes -

- precedes *

* at same level with ^

+ and * right to left asscociativity.

Then correct stack priorities for +,*,^, / for correctly converting infix to postfix form?

5,1,2,4         4,1,5,2    3,1,1,2    none

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
0 answers
3
Mk Utkarsh asked Oct 20, 2018
860 views
Please convert it to postfix by using stack and explain in detailvoid (*bsd_signal(int sig, void (*func)(int)))(int);
0 votes
0 votes
0 answers
4
Radha mohan asked Dec 26, 2017
1,051 views
Sir it is given everywhere that time complexity of infix to postfix is O(1) but according to algorithm for some operators we have to traverse back the stack until we find...