fork(7) download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. struct book
  6. {
  7. char name;
  8. float price;
  9. };
  10. struct book b;
  11. scanf("%c %f",&b.name,&b.price);
  12.  
  13. printf("%c %f",b.name,b.price);
  14. return 0;
  15. }
  16.  
  17. /*linkfloat()
  18. {
  19. float a=0,*b;
  20. b=&a; //cause emulator to be linked
  21. a=*b; //suppress the warning: variable not found
  22. }*/
Success #stdin #stdout 0.01s 1724KB
stdin
a 2.3
stdout
a 2.300000