geeksforgeeks
search icon
  • Courses
  • Tutorials
  • Interview Prep
    Similar Topics
    Web Technologies32.1K+ articles
    DSA20.6K+ articles
    Python19.6K+ articles
    Difference Between3.1K+ articles
    C Language1.3K+ articles
    C Programs441+ articles
    C-Functions90+ articles
    C Basics78+ articles
    cpp-main7+ articles
    return5+ articles

    exit

    2 posts
    Difference between exit() and break in C/C++
    Last Updated: 23 July 2025
    In this article, the topic is to understand the difference between exit() and break.exit():When a user wants to exit a program from this function is used.It is a void retu...read more
    C Programs
    Difference Between
    C Language
    exit
    C Basics
    Return Statement vs Exit() in main() in C++
    Last Updated: 06 May 2023
    The return statement in C++ is a keyword used to return the program control from the called function to the calling function. On the other hand, the exit() function in C i...read more
    C Language
    return
    exit
    cpp-main
    C-Functions
    GeeksforGeeks
    location
    Corporate & Communications Address:
    A-143, 6th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
    location
    Registered Address:
    K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
    GFG App on Play StoreGFG App on App Store
    • Company
    • About Us
    • Legal
    • Privacy Policy
    • Contact Us
    • Advertise with us
    • GFG Corporate Solution
    • Campus Training Program
    • Explore
    • POTD
    • Job-A-Thon
    • Blogs
    • Nation Skill Up
    • Tutorials
    • Programming Languages
    • DSA
    • Web Technology
    • AI, ML & Data Science
    • DevOps
    • CS Core Subjects
    • Interview Preparation
    • Software and Tools
    • Courses
    • ML and Data Science
    • DSA and Placements
    • Web Development
    • Programming Languages
    • DevOps & Cloud
    • GATE
    • Trending Technologies
    • Videos
    • DSA
    • Python
    • Java
    • C++
    • Web Development
    • Data Science
    • CS Subjects
    • Preparation Corner
    • Interview Corner
    • Aptitude
    • Puzzles
    • GfG 160
    • System Design
    @GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved