Challenger App

No.1 PSC Learning App

1M+ Downloads

What is the value of sum after the execution of the following code?

int sum = 0;

for (int i = -5; i<=;i++)

{

         if (!i) break;

         sum += i;

}

 

 

A0

B-5

C-15

D15

Answer:

C. -15

Read Explanation:

sum = -15


Related Questions:

ഉയർന്ന തലത്തിലുള്ള ഭാഷകളിൽ എഴുതിയ പ്രോഗ്രാമുകൾ യന്ത്രഭാഷകളിലേക്ക് മാറ്റുന്നതിന് -------- ഉപയോഗിക്കുന്നു.
ASCII refers to :
A markup language used for creating web pages and web applications
In MS Power Point,which shortcut key can be used to start the presentation ?
MDI stands for: