#include<stdio.h> #include<stdlib.h> int main(void) { printf("LeeCookies; "); system("pause"); exit(0); }
#include<stdio.h> #include<stdlib.h> int main(void) { printf("LeeCookies; "); system("pause"); return 0; }
在main函数中,exit(0)和return 0是等价的;
#include<stdio.h> #include<stdlib.h> int main(void) { printf("LeeCookies; "); system("pause"); exit(0); }
#include<stdio.h> #include<stdlib.h> int main(void) { printf("LeeCookies; "); system("pause"); return 0; }
在main函数中,exit(0)和return 0是等价的;