473,493 Members | 2,245 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

What does "void (*vector[])( )" means?

Is this a pointer array of function?If I was wrong,what does it
means?

Nov 14 '05 #1
7 1873
"Bruce Sam" <pe*********@yahoo.com.cn> writes:
Is this a pointer array of function?If I was wrong,what does it
means?


array of pointer to function returning void
--
"IMO, Perl is an excellent language to break your teeth on"
--Micah Cowan
Nov 14 '05 #2
Bruce Sam wrote:
Is this a pointer array of function?If I was wrong,what does it
means?


void (*vector[])( )

can be simplied (in terms of readability) as

typedef void (*PF) ();
PF vector[];
Nov 14 '05 #3
Quoth Ben Pfaff on or about 2004-11-12:
Is this a pointer array of function?If I was wrong,what does it
means?


array of pointer to function returning void


If you also mention cdecl(1), the OP might answer the next question
himself.

From the manpage:

Cdecl (and c++decl) is a program for encoding and decoding C (or
C++) type declarations.

-trent
Nov 14 '05 #4
Bruce Sam wrote:
Is this a pointer array of function?If I was wrong,what does it
means?


Don't forget to put important parts of your message in the message. It
is not sufficient to hide that information in a header.
"void (*vector[])( )" declares vector as an array of pointers to
functions with an unspecified argument list and returning nothing.
Nov 14 '05 #5
"Bruce Sam" <pe*********@yahoo.com.cn> wrote in message news:<11**********************@f14g2000cwb.googleg roups.com>...
Is this a pointer array of function?If I was wrong,what does it
means?


This is an array of functions each with no (undefined) argument list
that return void. It can be made easier to understand ysing a typdef
for the function
Nov 14 '05 #6
On Sun, 14 Nov 2004 08:22:37 -0800, Stuart Gerchick wrote:
"Bruce Sam" <pe*********@yahoo.com.cn> wrote in message
news:<11**********************@f14g2000cwb.googleg roups.com>...
Is this a pointer array of function?If I was wrong,what does it means?
This is an array of functions each with no (undefined) argument list


That should be "array of pointers to functions", you cannot have an "array
of functions" in C.
that return void. It can be made easier to understand ysing a typdef
for the function


Rob Gamble
Nov 14 '05 #7
On 14 Nov 2004 08:22:37 -0800, sg*******@bloomberg.net (Stuart
Gerchick) wrote:
"Bruce Sam" <pe*********@yahoo.com.cn> wrote in message news:<11**********************@f14g2000cwb.googleg roups.com>...
Is this a pointer array of function?If I was wrong,what does it
means?


This is an array of functions each with no (undefined) argument list
that return void. It can be made easier to understand ysing a typdef
for the function


Almost. It is an array of *pointer to* function. The parameter list
of the function is *unspecified*, which does not necessarily mean the
function takes no arguments.
<<Remove the del for email>>
Nov 14 '05 #8

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

Similar topics

2
2476
by: Bill Zhao | last post by:
Dear all, Sorry for i did not paste original propreity codes See below the fake codes for what I cannot understand. =============================================== lass A { public: virtual...
7
2554
by: Ollej Reemt | last post by:
Hello, I would like to know if there is a difference in c++ between the following two method-declarations: void Method(); and void Method(void);
4
3729
by: Luke Wu | last post by:
I am just wondering what the following terms usually mean: 1) "Standard C" 2) "K&R C" 3) "ANSI C" I am pretty sure "ANSI C" usually refers to the C89 standard, but what
188
17185
by: infobahn | last post by:
printf("%p\n", (void *)0); /* UB, or not? Please explain your answer. */
9
1223
by: A.M | last post by:
Hi, I am analysing a VB.NET code and i see this line of code: Dim strCacheKey As String = & "provider" What is the role of ?
5
4394
by: Niu Xiao | last post by:
I saw a lot of codes like: void foo(void* arg) void bar(void** arg) f((void*)p) but what does void pointer mean in c? I just know it stands for generic pointer. thanks.
6
17154
by: tingjun.li | last post by:
There is a demo program: ------------------------------------------------- const char* WS = " \t\n"; const int n_WS = strlen(WS); char* s1 = "This sentence contains five words."; char* s2 =...
4
3217
by: giannis | last post by:
I am a newbie at VB. When i try to remove an item from the BindingSource and try to delete this item from the database: BindingSource.RemoveCurrent() ...
4
5333
by: Lightmage | last post by:
Hello all, I am using C++ to convert a certain file into an XML file. During the conversion the program does some arithmetic operations on the information that is then outputted in xml format. ...
0
7119
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5453
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.