example.c 372 B

1234567891011121314151617181920212223242526
  1. /* public domain; license/waiver: cc0 1.0 */
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <time.h>
  5. typedef struct UselessStruct
  6. {
  7. const char* name;
  8. int count;
  9. union {
  10. int x;
  11. float y;
  12. };
  13. } useless_struct_t;
  14. int main()
  15. {
  16. srand(time(NULL));
  17. if (rand() % 2)
  18. puts("Hello!");
  19. else
  20. puts("Goodbye!");
  21. }