LIVE Course for free

Rated by 1 million+ students
Get app now
0 votes
18 views
in Computer by (71.7k points)
closed by

The attributes of three arithmetic operators in some programming language are given below. 

Operator Precedence Associativity Arity
+ High Left Binary 
Medium Right Binary 
Low Left Binary 

The value of the expression 2 − 5 + 1 − 7 ∗ 3 in this language is .

1 Answer

+1 vote
by (70.7k points)
selected by
 
Best answer

Correct answer is (9)

2 - 5 + 1 - 7*3

2 - (5 + 1) - 7*3

2 - 6 - 7*3

2 - (6 - 7)*3

2 - (- 1)*3

(2 + 1)*3

3*3 = 9

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...