What will be the output of the following C code? [code] #include <stdio.h> void main() { char *s = "hello";

Kim Trang

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    void main()
    {
        char *s = "hello";
        char *p = s;
        printf("%p\t%p", p, s);
    }
A. Different address is printed
B. Same address is printed
C. Run time error
D. Nothing
 

Tìm kiếm

Back
Top