fork(1) download
  1. #include<stdio.h>
  2. #include<string.h>
  3. #define tam 100
  4.  
  5. typedef struct {
  6. char nome[51];
  7. char curso[51];
  8. char cota[51];
  9. int matricula;
  10. int coef;
  11. } TipoAluno;
  12.  
  13. int main() {
  14. TipoAluno aluno = {
  15. .nome = "A",
  16. .curso = "B",
  17. .cota = "C",
  18. .matricula = 1
  19. };
  20. printf("%s", aluno.nome);
  21. }
Success #stdin #stdout 0s 4216KB
stdin
Standard input is empty
stdout
A