Computer Science, asked by pandeyjatin101, 1 year ago

output is 1
but how​

Attachments:

Answers

Answered by AarthiraiPadikkasu
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