Examveda

What will be the output of the following C code?
#include <stdio.h>
struct student
{
    char *name;
};
void main()
{
    struct student s, m;
    s.name = "st";
    m = s;
    printf("%s%s", s.name, m.name);
}

A. Compile time error

B. Nothing

C. Junk values

D. st st

Answer: Option D


This Question Belongs to C Program >> Structure And Union

Join The Discussion

Related Questions on Structure and Union