fork download
  1. #include <stdio.h>
  2.  
  3. typedef struct{
  4. int id;
  5. int height;
  6. int *qst;
  7. }data;
  8.  
  9. int main(void) {
  10. int question =5;
  11. data me = { 1, 160, &question};
  12. printf("id :%d\n",me.id);
  13. printf("height :%d\n",me.height);
  14. printf("*qst :%d\n",*(me.qst));
  15.  
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
id :1
height :160
*qst :5