fork download
  1. #include <stdio.h>
  2.  
  3. typedef struct {
  4. int a, b;
  5. } S;
  6.  
  7. int main(void) {
  8. S s;
  9. S *p = &s;
  10. // your code goes here
  11. *p = (S){1,2};
  12.  
  13. printf("%d %d\n", p->a, p->b);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 9416KB
stdin
Standard input is empty
stdout
1 2