fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. void Display_struct(void * dest_var){
  5.  
  6. int example_num_ptr;
  7.  
  8. example_num_ptr = *((int *)dest_var);
  9.  
  10. printf("%d\n",example_num_ptr);
  11. }
  12.  
  13. int main()
  14. {
  15. int example_num = 100;
  16.  
  17.  
  18. Display_struct(&example_num);
  19. return 0;
  20. }
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
100