Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8834855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:07:22+00:00 2026-06-14T09:07:22+00:00

i have been learning C++ for a while and the only thing i cannot

  • 0

i have been learning C++ for a while and the only thing i cannot wrap my head around at all is the function prototype and function call and function definition stuff. Ive read all sorts of stuff and still have no clue what it means or does. i just want to be able to understand and identify each of those. i am pretty sure that these are important to programming from what i have read.i have a rough idea of a function prototype, i believe it is a statement tat returns the value of something.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:07:23+00:00Added an answer on June 14, 2026 at 9:07 am

    Let me see if I can explain with some analogies

    Function Prototype – It is like an ad for a product – It says there is a Product X and you can get it from Location Y. This is sufficient for you as a consumer, but doesnt say anything about what goes on behind the scenes to get X to Y and to you.

    Similarly, a function prototype is a statement that just says that there is a function somewhr that is named X, takes arguements Y and returns value Z. Enough for any callers but cant do anything on its own.
    e.g int DoSomething(int arg);

    Function Call – This is the consumer going and asking for the product X at location Y.

    This is when the function code is actually called. But to be able to call the function you need to know it exists, so you need(at least) a prototype for the function just above the call.
    e.g int a = DoSomething(1);

    Function Definition – This is the actual procedure that manufactures product X and transports it to location Y.

    Essentially this is the code of the function itself.
    e.g
    int DoSomething(int arg){
    return arg+2;
    }

    A function prototype(also called forward declaration) is needed in C and for free functions (functions which do not belong to a class) in C++

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been learning Python for a while, and now I'd like to learn
I have been learning python for some time now. While starting this learning python
Still learning JSP Web Applications here. I have been doing this for a while
I have been learning css & jquery. <!DOCTYPE html> <html> <head> <style type=text/css> #box
I have been learning PHP/Mysql for a while. But don't yet know enough to
I have been learning DirectX for a while now & I got to the
I have been learning to use Emacs for a little while now. So far
I have been learning Python for a little while now, and I feel that
I have been learning NodeJS recently. It seems to be standard in the Node
I have been learning about Delegation and Data Sources for iOS programming and need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.