#include <stdlib.h>
#include <stdio.h>

void bye()
{
    printf("byte\n");
}

void goodbyte()
{
    printf("good byte\n");
}

int main(int argc, char *argv[])
{
    atexit(bye);	//bye will be called after exit
    atexit(goodbyte); //goodbyte will be called after exit
    printf("hello\n");
    return 0;
}

相关文章:

  • 2021-07-27
  • 2022-12-23
  • 2021-10-04
  • 2021-12-08
  • 2021-12-12
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2022-03-10
  • 2021-05-23
  • 2022-01-10
  • 2021-05-04
相关资源
相似解决方案