What will be the result of following code after constant propagation?

int x =4;

int y = x * 2;

int z = a[y];

1

int x = 4;

int y = 4 * 2;

int z = a[y];
2

int y =4 *2;

int z = a[y]
3

int y = 8;

int z = a[y];

4
int z = a[8];

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation