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

  • Home
  • SEARCH
  • 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 8748321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:30:20+00:00 2026-06-13T12:30:20+00:00

I have a simple question: What is the type of function in C or

  • 0

I have a simple question:

What is the type of function in C or C++

As we can have pointers to function in C or C++, that means functions should have a specific type otherwise type checking during pointers to function creation have no meaning.

Can someone explain me, I am on the correct path or not?

If I am on the right path, How can I find the type of function?

  • 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-13T12:30:21+00:00Added an answer on June 13, 2026 at 12:30 pm

    Syntax for function pointers

    The type of a function in C/C++ includes both the return type and the types of input parameters .

    Consider the following function declaration:

    int function(char, float);
    

    A pointer to that function has the following type:

    int (*funptr)(char, float); 
    

    Similarly in general :

    returntype function (argtype1, argtype2, argtype3)
    

    A corresponding pointer to such a function is

    returntype (*ptr) (atgtype1, atgtype2, atgtype3);  
    

    There are be many different types of functions. Find a useful reference on function pointers here.

    Also, this classification is based on the return type and argument types. Functions can also be classified on the basis of scope of their accessibility. like global functions, static functions etc. See here for a short introduction.

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

Sidebar

Related Questions

Possible Duplicate: c++ virtual function return type I have a simple but confusing question
i have a simple question, there is a function with parameter emp_id that opens
I have simple type Question : public class Question { public string[] Tags {
I have a simple question and that is how do you check if an
I have tried to write an utility function that can convert my custom data
i have this and a simple question to it. $.ajax({ type: POST, url: /,
I have a sql function that does a simple sql select statement: CREATE OR
I have a function that can return one of three things: success ( True
In my project I have created a data type, that can hold one of
These are probably are pretty simple YES|NO type questions. I have some NSDictionaries containing

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.