Parenthesis are never needed in prefix or postfix
expressions. Why?
Answer Posted / poonam khandar
Parenthesis are used to define the sequence or priority of
execution of operations in given infix expression. When we
write an espression in prefix or postfix format we have
already considered the order of execution and only evaluate
the expression starting from left towars right in the
sequence the operators and operands are encountered.
| Is This Answer Correct ? | 34 Yes | 3 No |
Post New Answer View All Answers
How many pointers are necessary to implement a simple linked list?
Draw a binary Tree for the expression : A * B - (C + D) * (P / Q)
Explain the expression trees?
How does the size of arraylist increases dynamically?
Write a program to reverse a link list.
What is the minimum number of queues that can be used to implement a priority queue?
What happens if we put a key object in a hashmap which exists?
Define primary data structures?
How do you check if a stack is empty or not?
Traverse the given tree using Inorder, Preorder and Postorder traversals. Inorder : D H B E A F C I G J Preorder: A B D H E C F G I J Postorder: H D E B F I J G C A
What do you mean by hash table?
Now you are given an array of a characters (both ASCII and Kanji) and, an index into the array. The index points to the start of some character. Now you need to write a function to do a backspace (i.e. delete the character before the given index).
Which sorting is used in collections sort?
What is weight balanced tree in data structure?
How do you sort a map by key?