output is 1
but how
Attachments:
![](https://hi-static.z-dn.net/files/d38/ad03bb420ece781bfc52b7184586caf2.jpg)
Answers
Answered by
1
Answer:
It checks whether that index value 4 of any character is available or not..In that word " program " r is the 4th index value .so it return 1..In java 1 means true (present), 0 means false(not present)...
Similar questions