Evaluate the following prefix expression " ++ 26 + - 1324"

Answer Posted / uma sankar pradhan

++ 26 + - 1324
= +(2+6) + - 1324
= +(2+6) + (1-3)24
= +(2+6)((1-3)+24)
= (2+6)+((1-3)+24)
= 8+(-2+24)
= 8+22
= 30

Is This Answer Correct ?    109 Yes 32 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a matrix? Explain its uses with an example

577


Write a recursive c function to calculate the height of a binary tree.

505


What is the need for priority queue?

563


Can you please explain the difference between array_name and &array_name?

560


State the rules to be followed during infix to prefix conversions?

649






Write an algorithm to show various operations on ordered list and arrays

515


How to get top two numbers from an array?

594


Why null is not allowed in treemap?

502


Can hashmap have same key?

474


What is difference between data type and data structure?

420


Does arraylist contain duplicates?

488


Will arraylist maintain insertion order?

507


What is data structure and its types?

496


Tell me how to find middle element of linked list in one pass?

524


Is python good for freshers?

504