Struncture : INTRODUCTION

 /*structure is used to store differt types of parameter in a single system

of fuction

sumit.name is used to point out value at name in parameter sumit*/


#include <stdio.h>


int main(){

struct student {

char name[70];

int age ;

int rollno;

};


struct student sumit = { "sumitbohare" , 18, 34};


 printf("%s, %d, %d ", sumit.name , sumit.age , sumit.rollno );

 return 0;

}


Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation