Veja como utilizar struct , declarando e recebendo dados em um programa feito em linguagem C.Veja mais em : http://linguagemc.com.br/struct-em-c/
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.