fork download
  1. #include <stdio.h>
  2.  
  3. struct pessoa {
  4. int notas[4];
  5. };
  6.  
  7. void listar(struct pessoa pessoa) {
  8. for (int i = 0; i < 4; i++) printf("\n--Nota %d: %d", i + 1, pessoa.notas[i]);
  9. }
  10.  
  11. int main() {
  12. struct pessoa n1[10];
  13. for (int i = 0; i < 4; i++) {
  14. printf("\nDigite a nota:");
  15. scanf("%d", &n1[0].notas[i]);
  16. }
  17. listar(n1[0]);
  18. }
  19.  
  20. #https://pt.stackoverflow.com/q/418425/101
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2
4
6
8
compilation info
prog.c:20:2: error: invalid preprocessing directive #https
 #https://pt.stackoverflow.com/q/418425/101
  ^~~~~
stdout
Standard output is empty