473,320 Members | 1,580 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

C++ declarations (arrays and pointers)

i know that:

double *a[n]; is an array of n pointers

double (*b)[n]; is pointer to array of size n

but what is:

double ( *c[n] )( ); and

double ( *d( ) )[n];
Feb 18 '08 #1
6 1272
Sam
joeschmoe98 writes:
i know that:

double *a[n]; is an array of n pointers

double (*b)[n]; is pointer to array of size n

but what is:

double ( *c[n] )( ); and

double ( *d( ) )[n];
That looks like a question on your homework, which you should try to figure
out on your own.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBHuNEkx9p3GYHlUOIRAsAsAJ9ijcP7HHrgahC5Oid7g4 5cd8goNgCfeRjs
h3x2UO4FNyCBftddxPeTttE=
=Ei5k
-----END PGP SIGNATURE-----

Feb 18 '08 #2
i just dont understand what the empty set of parenthesis are for
Feb 18 '08 #3
joeschmoe98 wrote:
i just dont understand what the empty set of parenthesis are for
Please don't snip relevant context.

Empty parentheses in a declaration mean that the thing to their left is
a function.
Feb 18 '08 #4
still confused, at least point me in the right direction. please
Feb 18 '08 #5
joeschmoe98 wrote:
still confused, at least point me in the right direction. please
When you post something new to a thread, please do not remove the
existing conversation. If re-post your question, please include your
best guess at what the confusing expressions mean.
Feb 18 '08 #6

"joeschmoe98" <jo***********@gmail.comwrote in message
news:0e**********************************@n58g2000 hsf.googlegroups.com...
>i know that:

double *a[n]; is an array of n pointers

double (*b)[n]; is pointer to array of size n

but what is:

double ( *c[n] )( ); and

double ( *d( ) )[n];
http://ieng9.ucsd.edu/~cs30x/rt_lt.rule.html

-Mike
Feb 18 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave Theese | last post by:
Hello all, I've been studying up on declarations (to write a parser for them) and came up with a complicated and contrived example. I just want to run it by the group to see if I've got it...
19
by: Canonical Latin | last post by:
"Leor Zolman" <leor@bdsoft.com> wrote > "Canonical Latin" <javaplus@hotmail.com> wrote: > > > ... > >But I'm still curious as to the rational of having type >...
2
by: Aguilar, James | last post by:
Hey all. Another question that I'm having trouble with. I want to make something of a really complicated declaration (in this case, declaring parameters). Can you tell me how I would write this?...
21
by: Matteo Settenvini | last post by:
Ok, I'm quite a newbie, so this question may appear silly. I'm using g++ 3.3.x. I had been taught that an array isn't a lot different from a pointer (in fact you can use the pointer arithmetics to...
4
by: David Thorp | last post by:
New to this list (first post), and relatively new to C, so hi everyone... If anyone can help me with this I'll be most grateful... The following code is from a rather elaborate (for me) program...
79
by: Me | last post by:
Just a question/observation out of frustration. I read in depth the book by Peter Van Der Linden entitled "Expert C Programming" (Deep C Secrets). In particular the chapters entitled: 4: The...
7
by: Alan Holloway | last post by:
Hi all, Firstly thanks for your golden insight on my earlier post re bitwise operations. I now have another question! I've just been reading the excellent Peter van der Linden excerpt ...
18
by: Vasileios Zografos | last post by:
Hello, can anyone please tell me if there is any difference between the two: double Array1; and
17
by: I.M. !Knuth | last post by:
Hi. I'm more-or-less a C newbie. I thought I had pointers under control until I started goofing around with this: ...
4
by: Christian Maier | last post by:
Hi After surfing a while I have still trouble with this array thing. I have the following function and recive a Segmentation fault, how must I code this right?? Thanks Christian Maier
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.