Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

C Interview Questions and Answers

Ques. Detemine the code below, tell me exectly how many times is the operation sum++ performed ?
Ans.
for ( i = 0; i < 100; i++ )
for ( j = 100; j > 100 - i; j?)
sum++;

(99 * 100)/2 = 4950
The sum++ is performed 4950 times.
Is it helpful? Yes No

Most helpful rated by users:

©2020 WithoutBook