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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:05:27+00:00 2026-06-15T07:05:27+00:00

double (*bar(int, double(*)(double,double[])))(double); While reviewing a lecture slide, I found an exercise left to

  • 0
double (*bar(int, double(*)(double,double[])))(double);

While reviewing a lecture slide, I found an exercise left to the student:

In plain English, what is the type of bar in this C declaration?

Please help walk me through this. I don’t even know where to begin, except that something is ultimately returning a double.

  • 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-15T07:05:28+00:00Added an answer on June 15, 2026 at 7:05 am

    This answer is brought to you by the ability to use the Spiral Rule. Being able to understand a complex expression by starting at the unknown element and reading around it (resolving things in the parenthesis first). A very useful skill when reading code.

            bar                                            - bar
            bar()                                          - is a function
            bar(int, )                                     - which takes an int...
            bar(int, (*)())                                - and a function pointer
            bar(int, double(*)())                          - which returns a double
            bar(int, double(*)(double, ))                  - and takes a double...
            bar(int, double(*)(double, double[]))          - and an array of doubles
          (*bar(int, double(*)(double, double[])))         - and returns a pointer
          (*bar(int, double(*)(double, double[])))()       - to a function
          (*bar(int, double(*)(double, double[])))(double) - taking a double
    double(*bar(int, double(*)(double, double[])))(double) - which returns a double
    

    That was the hard way… There are of course sites that make this easier, the cdecl site for example; but it’s good to be able to read code even when you can’t get to the internet.

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

Sidebar

Related Questions

Is it possible to take a record like: type Foo = { Bar: int
double? test = true ? null : 1.0; In my book, this is the
double d[10]; int length = 10; memset(d, length * sizeof(double), 0); //or for (int
While experimenting a bit with C++ templates I managed to produce this simple code,
Given: case class Foo(a: Int, b: String, c: Double) you can say: val params
In C, I might do something like this: #define MAGIC_NUMBER (88) int foo(int a,
Is it possible to write something similar to: def foo(x: Int, y: Double) def
I'd like to do the following: cdef extern from foo.h namespace foo: int bar(int,
I'm curious as to the best way to convert a double to an int.
While working on a school project, due this saturday, I encountered the most annoying

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.