Deprecated: Implicit conversion from float-string "1585307803.247" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1585307803.247" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1585307803.247" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1585307803.247" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1585307803.247" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1585380377.743" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1585380377.743" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1585380377.743" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1585380377.743" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1585380377.743" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1596705042.017" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1596705042.017" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1596705042.017" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1596705042.017" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1596705042.017" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1620935217.563" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1620935217.563" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1620935217.563" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1620935217.563" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1620935217.563" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
DS: UGC NET CSE | December 2006 | Part 2 | Question: 24
edited by
984 views

2 Answers

0 votes
0 votes

Fully parenthesized expression: ((d/(e+f))+(b∗c))

Equivalent Postfix expression: def+/bc∗+

Replace ")" with the enclosed operator and remove the corresponding "(". Start with inner most expression.

Hence, option C is correct.

0 votes
0 votes
The steps are as follows:

$d/(e+f)+b*c$

$\implies ((d/(e+f))+(b*c))$

$\implies((d/ \ ef+))+(b*c))$

$\implies ((def+/)+(b*c))$

$\implies (def+/)+\ bc*$

$\implies def+/ \ bc* \ +$

Option $(C)$ is correct.

Note :1) Parenthesis $()$ is having the highest priority and associativity is left to right.

          2)  Division $(/)$, multiplication $(*)$ having less priority than parenthesis but high than addition $(+)$ operator. all of them having associativity is left to right.

          3) In infix expression operator is placed between operand while in postfix expression operator followed their operand.

Related questions


Deprecated: Implicit conversion from float-string "1585307810.751" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1585307810.751" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1585307810.751" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1585307810.751" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1585307803.786" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1585307803.786" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1585307803.786" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1585307803.786" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1585307802.577" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1585307802.577" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1585307802.577" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1585307802.577" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1585307816.914" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1585307816.914" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1585307816.914" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1585307816.914" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
567
views
1 answers
0 votes
go_editor asked Mar 27, 2020
567 views
When a function is recursively called, all automatic variables :are initialized during each execution of the functionare retained from the last executionare maintained in...
6.1k
views
2 answers
1 votes
go_editor asked Mar 27, 2020
6,124 views
What is the time required to insert an element in a stack with linked implementation ?$O (\log_2 n)$$O (n)$$O (n\log_2 n)$$O (1)$
799
views
1 answers
0 votes
go_editor asked Mar 27, 2020
799 views
Which one of the following is a physical data structure ?ArrayLinked listsStacksTables
1.5k
views
1 answers
0 votes
go_editor asked Mar 27, 2020
1,504 views
Which of the regular expressions corresponds to this grammar ?$S → AB/AS, A → a/aA, B → b$$aa^*b^+$$aa^*b$$(ab)^*$$a(ab)^*$