Does C have Call-By-Reference for a function??
I think it doesn't. Am I right?
Nov 9 '08
15 1736
Nick Keighley wrote:
Eric Sosman <esos...@ieee-dot-org.invalidwrot e:
>coolguyaround. ..@gmail.com wrote:
>>Technically speaking, does C have Call-By-Reference for a function?? I think it doesn't. Am I right?
You are right: C function arguments are passed by value.
you mean "wrong"?
No, you are wrong. The normal reading is handled by "C function
arguments are passed by value". The off-beat reading is handled by
the fact that C does NOT have "Call-By-Reference".
A third possible reading is that you are asserting "C function
arguments are passed by wrong".
:-) (and you are wrong)
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
Nick Keighley wrote:
On 9 Nov, 18:53, Eric Sosman <esos...@ieee-dot-org.invalidwrot e:
>coolguyaround. ..@gmail.com wrote:
>>Technically speaking, does C have Call-By-Reference for a function?? I think it doesn't. Am I right?
You are right: C function arguments are passed by value.
you mean "wrong"?
If I remember right, I didn't mean "wrong" -- but I could be
wrong, right?
Two wrongs don't make a right, but three lefts do.
-- Er*********@sun .com
Eric Sosman wrote:
....
Two wrongs don't make a right, but three lefts do.
I miss street grids! Where I currently live, three left turns often
get me on a dead-end street, and usually get me lost - they are seldom
the equivalent of a right turn.
jameskuyper wrote:
Eric Sosman wrote:
...
>Two wrongs don't make a right, but three lefts do.
I miss street grids! Where I currently live, three left turns
often get me on a dead-end street, and usually get me lost -
they are seldom the equivalent of a right turn.
You are allowed to move out of Boston. :-)
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
jameskuyper wrote:
Eric Sosman wrote:
...
> Two wrongs don't make a right, but three lefts do.
I miss street grids! Where I currently live, three left turns often
get me on a dead-end street, and usually get me lost - they are seldom
the equivalent of a right turn.
where I live 3 rights re likely to make a left, but three lefts will, on
average, get you in trouble with the police twice...
Bye, Jojo
CBFalconer wrote:
jameskuyper wrote:
>Eric Sosman wrote: ...
>>Two wrongs don't make a right, but three lefts do.
I miss street grids! Where I currently live, three left turns often get me on a dead-end street, and usually get me lost - they are seldom the equivalent of a right turn.
You are allowed to move out of Boston. :-)
It's actually the Maryland suburbs of Washington, DC. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marwan |
last post by:
Hello
I am using asynchronous delegates to make a call to a COM ActiveX object, but even though the call occurs on a separate thread, my UI is still blocking.
If i put the thread to sleep in my delegate call, the application is well behaved (no UI freeze), but the call to the com object causes the UI to lock up
Do I have to manage calls to an ActiveX object differently than using the BeginInvoke and a callback
A sample of the code I...
|
by: Fabian Müller |
last post by:
Hi all,
my question is as follows:
If have a class X and a class Y derived from X.
Constructor of X is X(param1, param2) .
Constructor of Y is Y(param1, ..., param4) .
|
by: JoeK |
last post by:
Hey all,
I am automating a web page from Visual Foxpro. I can control all the
textboxes, radio buttons, and command buttons using syntax such as:
oIE.Document.Forms("searchform").Item(<name>).Value = <myvalue>
But I cannot control a dropdown with an onchange event. I can set the
dropdown's value and selectedIndex, but then calling the onChange() or
Click() does not do anything. It only seems to fire the onchange if I
|
by: rahul8143 |
last post by:
hello,
what is difference between system call and library function
call? Does library function call can have context switch to kernel
mode?
regards,
rahul
|
by: John |
last post by:
Hi all,
This really is quite an urgent matter.
I have a page with multiple, dynamically-loaded user controls and when a
user clicks on a button, the whole form is submitted. Now at this stage I
know I need to call a function that will save data but I'm not sure exactly
when to call this function.
I've tried two ways and both seem to have 'gotcha's':
| |
by: Amaryllis |
last post by:
I'm trying to call a CL which is located on our AS400 from a Windows
application. I've tried to code it in different ways, but I seem to
get the same error every time. Does anyone have any clue as to what
this means? I am not trying to alter a table. This particular CL
merely generates the next voucher number in a sequence.
"SQL0204: HRCU030P in HRZNCUSOBJ type *N not found.
Cause . . . . . : HRCU030P in HRZNCUSOBJ type *N was...
|
by: archana |
last post by:
Hi all,
I am having application in which i am doing asynchronous call.I am
using manualresetevent to wait for asynchronous call to complete.
I want to stop asynchronous call after certain period of time.
I want something like thread.abort for aborting aynchronous call.
Can someone tell me way of aborting asynchronous call.
|
by: cberthu |
last post by:
Hi all,
Is it possible to have two connects in the same rexx script to
different DB's?
I have to get data form on DB (with specifics selects and filter out
some values with RExx) and save the results into another DB?
I know from Wscripts and MS-Sql that you can build just two objects
but I did not see something like that in REXX.
Thanks in advance for your help
|
by: savio XCIX |
last post by:
I created the following stored procedure:
=======
CREATE PROCEDURE TBLNAME.proc_test (IN p_custnum VARCHAR(8),
IN p_zipcode CHAR(5),
OUT r_valid CHAR(1),
OUT r_bal DECIMAL(9,2))
LANGUAGE SQL
BEGIN
|
by: JCav |
last post by:
I need to call a COM object from a remote machine using C#. I also need to
pass on a different userID and password to the call. Has anyone done this?
I've used Java to do this using JIntegra, but the application I'm using
requires .NET.
Any advice?
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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: 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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |