/*------------------------------------------------------------------------------------------
@ Pratice C laguage
Author : SAM
Created : 28-03-2017
Modified : 28-03-2017
Language/ver : C in MSVS2015
Description : Practice
KEYWORD : Struct, Typedef2
------------------------------------------------------------------------------------------*/
#include<stdio.h>
typedef struct Data
{
int data1;
int data2;
}Data;
int main(void) {
Data d = { 1,2 };
printf("%d,%d\n", d.data1, d.data2);
return 0;
}
p.s typedef struct Data -> tpyedef struct is possible