#include &lt;iostream&gt;    using namespace std;    void addprint&#40;&#41;    &#123;        static int s = 1;        s++;        cout &lt;&lt; s;    &#125;    int main&#40;&#41;    &#123;        addprint&#40;&#41;;        addprint&#40;&#41;;        addprint&#40;&#41;;        return 0;    &#125;
A. 234
B. 111
C. 123
D. 235
Answer:A
#include &lt;iostream&gt;    using namespace std;    void addprint&#40;&#41;    &#123;        static int s = 1;        s++;        cout &lt;&lt; s;    &#125;    int main&#40;&#41;    &#123;        addprint&#40;&#41;;        addprint&#40;&#41;;        addprint&#40;&#41;;        return 0;    &#125;
A. 234 B. 111 C. 123 D. 235
Explanation:The variable that is declared as static has a file scope.