What will be the output of the following C code? [code] #include <stdio.h> int main() { register int i = 10;

What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        register int i = 10;
        int *p = &i;
        *p = 11;
        printf("%d %d\n", i, *p);
    }
A. Depends on whether i is actually stored in machine register
B. 10 10
C. 11 11
D. Compile time error
 

Tìm kiếm

Back
Top