Examveda

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

A. hello

B. Nothing

C. Varies

D. Compile time error

Answer: Option D


This Question Belongs to C Program >> Structure And Union

Join The Discussion

Related Questions on Structure and Union