Simple program of structure in C programming -99webcode

 simple program of stucture in c programming -99webcode

simple program of stucture in c programming  using input



#include<stdio.h>

struct student

{

  int rollno;

int age;

float mark;

    char name[30];

};

void main()

{

struct student s1={11,12,50,"salil"};

printf("information of student s1");

printf("\n%d %d %f %s",s1.rollno,s1.age,s1.mark,s1.name);

   // printf("rollis :%d\n age is:%d\n marks is:%f\n name is:%s",s1.rollno,s1.age,s1.mark,s1.name);




}

Post a Comment (0)
Previous Post Next Post