Given the following code. int i = 40; %3D void func() static int j = 5; int main() int k = 0; func(); Which of the following statements is correct? a. iis a global variable, j is a local variable, kis...

2.3Given the following code.<br>int i = 40;<br>%3D<br>void func()<br>static int j = 5;<br>int main()<br>int k = 0;<br>func();<br>Which of the following statements is correct?<br>a. iis a global variable, j is a local variable, kis a static local<br>variable.<br>O b. iis a local variable, j is a local variable, kis a global variable.<br>O c. i is a global variable, j is a static local variable, k is a local<br>variable.<br>O d. i is a static local variable,j is a global variable, k is a local<br>variable.<br>

Extracted text: Given the following code. int i = 40; %3D void func() static int j = 5; int main() int k = 0; func(); Which of the following statements is correct? a. iis a global variable, j is a local variable, kis a static local variable. O b. iis a local variable, j is a local variable, kis a global variable. O c. i is a global variable, j is a static local variable, k is a local variable. O d. i is a static local variable,j is a global variable, k is a local variable.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here