A CORRECT, but display:
cnt: 45
45
cnt: 45.
because p() will output in buffer line 45, and inside loop ,we do not output anything in to buffer and if you give parameter to the p() function for example p(1) , function will again return value 45.
correction p(1) will return 1, and will return 45 if we do not give any parameter .
upvoted 2 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
pancernick76
Highly Voted 4 years, 7 months agotrex_fcs
Most Recent 1 year, 10 months agoHexaDev
4 years, 6 months agoHexaDev
4 years, 6 months ago