Select from following answers:- 2

- 4
- 5
- 1
- All Above
The third line takes the variable x, looks inside the value of that variable "y" .So now it will be x["a"]++
and a = 1. so the final expression becomes
x[y]++ => x["a"]++ => 1++ =>2
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator