What will be the output of the following C code? [code] #include <stdio.h> int main() { char *a = {"p", "r", "o", "g",

Nguyễn Pháp

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        char *a = {"p", "r", "o", "g", "r", "a", "m"};
        printf("%s", a);
    }
A. Output will be program
B. Output will be p
C. No output
D. Compile-time error
 

Tìm kiếm

Back
Top