search
Log In
2 votes
104 views

in Programming 104 views
0
only b is correct, can you provide the answer

1 Answer

0 votes
Answer is D. You can do every of the option mentioned with static variables.

Related questions

0 votes
1 answer
1
431 views
Why am i not getting any error while executing the following statements? int x=20; int z=x;//error expected but not coming int main() { int y=10; static int temp=y; //Error expected but not coming temp=99;//Error expected but not coming getch(); }
asked Dec 28, 2016 in Programming rahul sharma 5 431 views
3 votes
0 answers
2
588 views
Consider the following code segment: $c=b+a$ $e=c-a$ $f=c*e$ $h=c+a$ $i=h+f$ The minimum number of temporary variable required to convert the above code segment to static single assignment form is ________. Doubt : Are we allowed to do minimizations in SSA? if YES then is it always the case, if NO when do we have to do it. Please clarify.
asked Dec 26, 2018 in Compiler Design shreyansh jain 588 views
1 vote
1 answer
3
256 views
X = A / b Y = C + D Y = Y - X X = D + Y Z = F + Y Z = Z + A MInimum number of total variables needed to convert above TAC to Static Single Assignment Answer given ==>11 My apporach X1 = A / b Y1 = C + D Y2 = Y1 - X1 X2 = D + Y2 Z1 = F + Y2 Z2 = Z1 + A Is above code in SSA ??
asked Nov 23, 2018 in Compiler Design jatin khachane 1 256 views
1 vote
0 answers
4
784 views
What is the Static Single Assignment (SSA) form for the following code segment: a = b+c; c = a+x; d = b+c; d = a+x; Should we use only 1 temporary variable for c=a+x and d=a+x because both of them evaluate the same expression finally?
asked Nov 15, 2018 in Compiler Design Heena Jain 784 views
...