fork download
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5. struct stru{
  6. char *year;
  7. }TESTA;
  8.  
  9.  
  10. printf("Year\n");
  11. scanf("%s",TESTA.year);
  12.  
  13. printf("Echo %s",TESTA.year);
  14. }
  15.  
Runtime error #stdin #stdout 0.01s 1724KB
stdin
2012
stdout
Year
Echo (null)