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. printf("Age: %d\n", kevin.age);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Age: 40