Question: C Programmin Q5. The local variable sum declared below has: int sum digits (int n) ( int sum = 0; /* local variable */ while

C Programmin

C Programmin Q5. The local variable sum declared below has: int sumdigits (int n) ( int sum = 0; /* local variable */while in0) i sum += n n/= 10; 10; return sum; a)static storage duration b) automatic storage duration c) Non block scope d)None of the aboveimage text in transcribedimage text in transcribed

Q5. The local variable sum declared below has: int sum digits (int n) ( int sum = 0; /* local variable */ while in0) i sum += n n/= 10; 10; return sum; a) static storage duration b) automatic storage duration c) Non block scope d) None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!