Codes/C

return과 exit()의 차이

2017. 8. 28. 20:45

https://stackoverflow.com/questions/3463551/what-is-the-difference-between-exit-and-return


return은 함수를 종료하는 것이고,

exit()는 프로세스 자체를 종료하는 것이다.




'Codes > C' 카테고리의 다른 글

random number generation without random(), /dev/urandom  (0) 2018.01.13
내가 생각한 C언어 웹서버 구현 원리중의 고민  (0) 2017.11.24
pcap  (0) 2017.07.13
zlib 분석  (0) 2017.07.08
GCC의 구조  (0) 2017.07.06