fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Student {
  5. char name[50];
  6. char id[10];
  7. int age;
  8. int grade[3];
  9. };
  10.  
  11. int main(void) {
  12. struct Student Kevin;
  13. Kevin.age = 40;
  14.  
  15. printf("Age: %d\n", Kevin.age);
  16. return 0;
  17. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Age: 40