Minimum number of variables required in Three address code?Is it your question

The Gateway to Computer Science Excellence

0 votes

a x b x c + d - a + e x f - g + h

order of precedence : x>+>- ; with x is left associative and +, - as right.

Min number of variables required in TAC?

Should'nt the expression be expressed as :

((a x b) x c) + d - a + (e x f) - g + h

(((a x b) x c) + (d - (a + (e x f)) - (g + h)))

order of precedence : x>+>- ; with x is left associative and +, - as right.

Min number of variables required in TAC?

Should'nt the expression be expressed as :

((a x b) x c) + d - a + (e x f) - g + h

(((a x b) x c) + (d - (a + (e x f)) - (g + h)))

+1

@manisha11 while paranthising you forgot that + has higher precedence over - and you treated as if both have same precedence and are right to left associative.

0

We have different types of 3address code representations like triple, quadruple ,indirect in which does the result wanted to be in?

Indirect doesn't use any extra variables I guess.

Indirect doesn't use any extra variables I guess.

0

Will someone tell me how many minimum number of variables will be used in this question? @hemanth

@manisha11

@manas mishra

@manisha11

@manas mishra

0

@Hemanth_13 The question is minimum number of variables required in three address code, does that mean SSA?

- All categories
- General Aptitude 1.9k
- Engineering Mathematics 7.5k
- Digital Logic 2.9k
- Programming and DS 4.9k
- Algorithms 4.4k
- Theory of Computation 6.2k
- Compiler Design 2.1k
- Databases 4.1k
- CO and Architecture 3.4k
- Computer Networks 4.2k
- Non GATE 1.4k
- Others 1.4k
- Admissions 595
- Exam Queries 573
- Tier 1 Placement Questions 23
- Job Queries 72
- Projects 18

50,737 questions

57,377 answers

198,522 comments

105,312 users