this poster tends to post with low information content
but high abuse content.
On Nov 2, 6:30*am, Nomen Nescio <nob...@dizum.c omwrote:
lancer6...@yaho o.com said:
<snip>
[i] saw a function header defined as:
int Function(int value1, int value2, (int *A)(void *A1, int *A2, void
*A3), void *A3)
This specifies that parameter A is a pointer to a function
and the function is called by
Function(value1 , value2, A, A3);
'A' would be the name of a function. C automatically converts the name
into
a pointer to a function. The term used in the standard is "decays to
a
function pointer"
Is the "(int *A)(void *A1, int *A2, void *A3)" in the function header
equivalent to passing a function (A) to another function (Function)?
it specifies that the parameter is a function pointer
Practically speaking, yes. In CLC-talk, no. Numerous semanticists,
postmodernists,
<snip>
your word salad seems more PoM than anything else I've
seen recently on clc.
Something to think about: If "(int *A)(void *A1, int *A2, void *A3)"
were replaced by "int A[]", would an entire array be passed to
Function() or something else?
If so, how are the arguments to A passed into Function when Function
is called?
They're not, at least not in the sense you probably think.
ok. It is specified that the parameter is a pointer to a function.
The parameters aren't passed here. You needd to look at the call
to A that, presumably, appears in Function().
<snip nonsense>
--
Nick Keighley 1 1206
On Sun, 2 Nov 2008 06:15:20 -0800 (PST), Nick Keighley
<ni************ ******@hotmail. comwrote:
>this poster tends to post with low information content but high abuse content.
On Nov 2, 6:30*am, Nomen Nescio <nob...@dizum.c omwrote:
>lancer6...@yah oo.com said:
<snip>
[i] saw a function header defined as:
int Function(int value1, int value2, (int *A)(void *A1, int *A2, void
*A3), void *A3)
This specifies that parameter A is a pointer to a function
and the function is called by
Function(value1 , value2, A, A3);
'A' would be the name of a function. C automatically converts the name into a pointer to a function. The term used in the standard is "decays to a function pointer"
Actually the word decay does not appear in the standard at all.
6.3.2.1-4 says "A function designator is an expression that has
function type. Except when it is the operand of the sizeof operator or
the unary & operator, a function designator with type ‘‘function
returning type’’ is converted to an expression that has type ‘‘pointer
to function returning type’’.
--
Remove del for email This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nomen Nescio |
last post by:
A new learner's question
Flash Gordon wrote:
To the OP, please be aware that Flash Gordon has a history of either
deliberately misleading and "miss-informing" posters to this
newsgroup or providing facile answers with which to amuse himself.
In this case, both. Facile because Flash Gordon did not tell you
substantially anything more than your compiler had told you. Misleading
|
by: Nomen Nescio |
last post by:
what is the type for this call?
Neo said:
Neo, buddy, I've decided to give you a little summary for reference
so that you don't have to sift through excess verbiage, cryptic
meanderings, and irrelevant matters of naming to make sense of this
thing. Please forgive any typos on my part.
|
by: Nomen Nescio |
last post by:
No format string passed to variable argument list function
Adam said:
Then Adam laters says:
Then Adam later says:
|
by: Chris Dollin |
last post by:
Joachim Schmitz wrote:
I think that remark is an ill-considered and unhelpful generalisation.
--
"We dance, and the worlds melt away." - Curved Air, /Metamorphosis/
Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England
|
by: Borked Pseudo Mailed |
last post by:
float and integers
c.lang.myself@gmail.com said
I will be making assumptions here about your system that will
infuriate the pedants, but I don't care. Given your X-HTTP-UserAgent
string, it is highly probable that these assumptions are valid.
Whether you have included stdio.h or not, the float argument to
printf() is promoted to a double, since even with a prototype
| |
by: George Orwell |
last post by:
its urgent.pls help me.
mona said:
mona said:
Hey again, mona.
Please check the thread "(part 21) Han from China answers
your C questions", in which I gave you a program with
|
by: George Orwell |
last post by:
fread breaks file descriptors opened in "w" mode.
...
Yes, once you break out of ANSI/ISO C, all things are possible.
You have posted an on-topic question to comp.lang.c. See version 2.0 of my topicality
FAQ if anyone should tell you otherwise.
Search: "Han from China's comp.lang.c topicality FAQ (version 2.0)"
|
by: Borked Pseudo Mailed |
last post by:
Error handling in C
Nick Keighley said:
...
...
To the OP, please be aware that Nick Keighley is a known troll
and is deliberately providing you with unsound advice. You asked
for error handling, not error generation (or much worse).
|
by: Nomen Nescio |
last post by:
What is this?
Eric said:
That looks like either someone's poor coding or someone's poor
pasting for an implementation of offsetof() from stddef.h. The
(char *) leads me to think that there's plenty of missing context,
so post the surrounding code, and we'll be happy to jerk ourselves
off analyzing the code for you and telling you why it won't work on
the control system for your Tomahawk missile.
|
by: George Orwell |
last post by:
File Seeking / Overwriting bytes
Martien Verbruggen said:
And this is, of course, also not right. fseek() does support
SEEK_END on text streams.
If you want to know why, please start a thread on comp.lang.c.
Also, you could read "(part 18) Han from China answers your C questions".
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |