adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
void main()
{
  struct number
  {
    int no;
    char name[20];
  };
  struct number s;
  s.no = 50;
  printf("%d", s.no);
}

a.

Nothing

b.

Compile time error

c.

Junk

d.

50

Posted under C Programming

Answer: (d).50

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?