• +91 9723535972
  • info@interviewmaterial.com

CPlusPlus Interview Questions and Answers

Question - Detemine the code below, tell me exectly how many times is the operation sum++ performed ?

Answer - for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; jā€“) sum++; (99 * 100)/2 = 4950 The sum++ is performed 4950 times.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners