Home / Programming MCQs / C Programming MCQs / Question

R

Ram Sharma • 178.09K Points
Coach

Q. What is the output of C program?

Code:
int main()
{
    struct book
    {
        int pages;
        char name[10];
    }a;
    a.pages=10;
    strcpy(a.name,"Cbasics");
    printf("%s=%d", a.name,a.pages);
    return 0;
}
(A) C=basics
(B) empty string=10
(C) Cbasics=10
(D) Compiler error

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.