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 6794339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:12:37+00:00 2026-05-26T18:12:37+00:00

What does the following declaration mean? typedef int (&rifii) (int,int); Is it a reference

  • 0

What does the following declaration mean?

typedef int (&rifii) (int,int);

Is it a reference to a function? If yes, shouldn’t it be initialized?

  • 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-05-26T18:12:38+00:00Added an answer on May 26, 2026 at 6:12 pm

    It defines the type “reference to a function taking two ints and returning an int“. Variables of that type need be initialized, but you can’t put an initializer into a typedef. It’s not different to e.g. int:

    int i;
    
    typedef int& intref; // no initializer allowed
    intref ri(i); // initializer required
    
    int f(int, int);
    
    typedef int (&rifii) (int,int); // no initializer allowed
    rifii rf(f); // initializer required
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What does the following mean? Class.Function(variable := 1 + 1) What is this operator
What does following declaration mean in C? char a = (10,23,21); While printing the
I have a question about following variable declaration. What does that mean? List<string>.Enumerator enumerator
Whether following structure declaration is right. typedef struct { int roll; int age ;
I'm getting crazy with this IE 7... ==> hhttp://neu.emergent-innovation.com/ Why does following function not
Possible Duplicate: What do parentheses surrounding a JavaScript object/function/class declaration mean? I have found
What does it mean in PHP when a function's list of arguments contains a
In the following code from https://www.php.net/manual/en/language.oop5.properties.php what does the <<< symbol mean? <?php class
The following declaration in C: int* a, b; will declare a as type int*
Let's say we have the following method declaration: Public Function MyMethod(ByVal param1 As Integer,

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.