Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
struct student
{
    int no;
    char name[20];
};
struct student s;
void main()
{
    s.no = 8;
    printf("%s", s.name);
}

A. Nothing

B. Compile time error

C. Junk

D. 8

Answer: Option A


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer