Question:What would be printed on the standard output as a result of the following code snippet?
main()
{
        void addup (int b);
                addup(b);
        return 0;
}
int b = 5;
void addup (int b)
{
        static int v1;
        v1 = v1+b;
        printf("%d ", v1);
}
 

A Will result in Compilation Error 

B 5 

C 0 

D Undefined value 

E 8 

+ Answer
+ Report
Total Preview: 899

Copyright © 2024. Powered by Intellect Software Ltd