473,406 Members | 2,217 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,406 software developers and data experts.

void* question

What is the major reason for using void*?
When should we use void* for both input arguments and return value?
How can we cast the void* pointer to the type we need?
Thanx
Nov 14 '05 #1
26 2091
Janice wrote:
What is the major reason for using void*?
Use a `void*' when you do not know the pointed-to
object's actual type, or do not care what it is, or
wish to conceal it.
When should we use void* for both input arguments and return value?
When both the arguments and the returned value meet
one or more of the criteria above.
How can we cast the void* pointer to the type we need?


The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.

Perhaps if you'd give a little more detail about what's
puzzling you, I'd be able to explain more clearly.

--
Er*********@sun.com

Nov 14 '05 #2
Eric Sosman <er*********@sun.com> writes:
Janice wrote:
How can we cast the void* pointer to the type we need?


The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


This is literally true, but not very helpful. It is not usually
necessary to cast to or from void * because conversions between
void * and other pointers to object or incomplete type do not
require casts.
--
"Large amounts of money tend to quench any scruples I might be having."
-- Stephan Wilms
Nov 14 '05 #3
Eric Sosman <er*********@sun.com> spoke thus:
Perhaps if you'd give a little more detail about what's
puzzling you, I'd be able to explain more clearly.


IMHO it sounds like homework, so maybe you did just fine...

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #4
Ben Pfaff wrote:
Eric Sosman <er*********@sun.com> writes:

Janice wrote:
How can we cast the void* pointer to the type we need?


The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


This is literally true, but not very helpful. It is not usually
necessary to cast to or from void * because conversions between
void * and other pointers to object or incomplete type do not
require casts.


C'mon, Ben: Leave her professor *some* excuse for taking
off a mark or two, won't you?

Janice: If your questions aren't homework, I repeat my
offer to try to answer more clearly if you'll explain your
difficulty in greater detail. If they *are* homework, you
can find the answers to these and to all your other C questions
in "The Annotated ANSI C Standard" by Herbert Schildt.

--
Er*********@sun.com

Nov 14 '05 #5
Janice wrote:
What is the major reason for using void*?
When should we use void* for both input arguments and return value?
How can we cast the void* pointer to the type we need?

Do your own homework.


Brian
Nov 14 '05 #6
Eric Sosman wrote:
Ben Pfaff wrote:
Eric Sosman <er*********@sun.com> writes:
Janice wrote:
How can we cast the void* pointer to the type we need?

The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


This is literally true, but not very helpful. It is not usually
necessary to cast to or from void * because conversions between
void * and other pointers to object or incomplete type do not
require casts.

C'mon, Ben: Leave her professor *some* excuse for taking
off a mark or two, won't you?

Janice: If your questions aren't homework, I repeat my
offer to try to answer more clearly if you'll explain your
difficulty in greater detail. If they *are* homework, you
can find the answers to these and to all your other C questions
in "The Annotated ANSI C Standard" by Herbert Schildt.


Ouch, that hurts ;-)
I would not have thought of homework...

On the other hand, even though [ni]{2}famous, Schildt's book
costs something. I suggest reviewing the chapters 4-6 of
this newsgroup's FAQ. Start from here:
http://www.eskimo.com/~scs/C-faq/top.html
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Nov 14 '05 #7
Eric Sosman wrote:
Janice wrote:
.... snip ...
How can we cast the void* pointer to the type we need?


The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


Er - no cast needed nor desirable. Simply assign the void* to an
int* and the conversion is automatic.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #8
In <I8********@news.boeing.com> "Default User" <fi********@boeing.com.invalid> writes:
Janice wrote:
What is the major reason for using void*?
When should we use void* for both input arguments and return value?
How can we cast the void* pointer to the type we need?


Do your own homework.


If it's homework, it's the most stupid kind of homework I have ever seen.
These are the things that have to be taught to the student, rather than
asking him to figure them out by himself.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #9
In <41***************@yahoo.com> CBFalconer <cb********@yahoo.com> writes:
Eric Sosman wrote:
Janice wrote:

... snip ...
How can we cast the void* pointer to the type we need?


The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


Er - no cast needed nor desirable. Simply assign the void* to an
int* and the conversion is automatic.


At the expense of creating an additional object. Sometimes it is worth
it, but not always.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #10
In <87************@benpfaff.org> Ben Pfaff <bl*@cs.stanford.edu> writes:
Eric Sosman <er*********@sun.com> writes:
Janice wrote:
How can we cast the void* pointer to the type we need?


The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


This is literally true, but not very helpful. It is not usually
necessary to cast to or from void * because conversions between
void * and other pointers to object or incomplete type do not
require casts.


Bullshit! Of course such conversions require casts because this is how
explicit conversions are performed in C.

It is assignments between void pointers and other pointer types that do
not require casts, because the conversion is *implicitly* performed by the
assignment operator.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #11
Dan Pop wrote:
In <I8********@news.boeing.com> "Default User"
<fi********@boeing.com.invalid> writes:
Janice wrote:
What is the major reason for using void*?
When should we use void* for both input arguments and return value?
How can we cast the void* pointer to the type we need?


Do your own homework.


If it's homework, it's the most stupid kind of homework I have ever
seen. These are the things that have to be taught to the student,
rather than asking him to figure them out by himself.

They don't sound like a list of questions that a newbie would come up
with to me. Maybe they do to you. To me they sound exactly like those
lists that instructors give to get the students to read a section of
text. That is, each question builds on the previous one.


Brian
Nov 14 '05 #12
Dan Pop wrote:
Ben Pfaff <bl*@cs.stanford.edu> writes:
Eric Sosman <er*********@sun.com> writes:
Janice wrote:

How can we cast the void* pointer to the type we need?

The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


This is literally true, but not very helpful. It is not usually
necessary to cast to or from void * because conversions between
void * and other pointers to object or incomplete type do not
require casts.


Bullshit! Of course such conversions require casts because this
is how explicit conversions are performed in C.

It is assignments between void pointers and other pointer types
that do not require casts, because the conversion is *implicitly*
performed by the assignment operator.


You, of course, are in the habit of making such conversions and not
assigning the result anywhere? I suspect the only place you could
gainfully do this is as an operand for sizeof. Your article is
well couched to allay any doubts some newbie may have on the
subject of void* usage.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #13


CBFalconer wrote:
Dan Pop wrote:
Ben Pfaff <bl*@cs.stanford.edu> writes:
Eric Sosman <er*********@sun.com> writes:

Janice wrote:

>How can we cast the void* pointer to the type we need?

The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.

This is literally true, but not very helpful. It is not usually
necessary to cast to or from void * because conversions between
void * and other pointers to object or incomplete type do not
require casts.
Bullshit! Of course such conversions require casts because this
is how explicit conversions are performed in C.

It is assignments between void pointers and other pointer types
that do not require casts, because the conversion is *implicitly*
performed by the assignment operator.

You, of course, are in the habit of making such conversions and not
assigning the result anywhere?


Think of arguments for variadic functions -- I would rather
cast the void * (to an int object) to (int *) if I "claim" to
pass an int * than assign the value of the void * to an
additional variable which goes into the argument list...
I suspect the only place you could
gainfully do this is as an operand for sizeof.
Nope.
Your article is
well couched to allay any doubts some newbie may have on the
subject of void* usage.


True, Dan concentrated on one aspect but to be honest: The OP
and newbies who have not taken the hint I gave elsethread (to
read the FAQ) should in a discussion where answering the OP's
question in a homework-compatible way is avoided like hell be
well aware that they might not get the most helpful answer...
-Michael
--
E-Mail: Mine is a gmx dot de address.

Nov 14 '05 #14
Da*****@cern.ch (Dan Pop) writes:
In <87************@benpfaff.org> Ben Pfaff <bl*@cs.stanford.edu> writes:
Eric Sosman <er*********@sun.com> writes:
Janice wrote:
How can we cast the void* pointer to the type we need?

The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


This is literally true, but not very helpful. It is not usually
necessary to cast to or from void * because conversions between
void * and other pointers to object or incomplete type do not
require casts.


Bullshit! Of course such conversions require casts because this is how
explicit conversions are performed in C.


It is not usually necessary to perform explicit conversions
between void * and pointers to object or incomplete type.
--
Ben Pfaff
email: bl*@cs.stanford.edu
web: http://benpfaff.org
Nov 14 '05 #15
Da*****@cern.ch (Dan Pop) writes:
In <I8********@news.boeing.com> "Default User"
<fi********@boeing.com.invalid> writes:
Janice wrote:
What is the major reason for using void*?
When should we use void* for both input arguments and return value?
How can we cast the void* pointer to the type we need?


Do your own homework.


If it's homework, it's the most stupid kind of homework I have ever seen.
These are the things that have to be taught to the student, rather than
asking him to figure them out by himself.


Has it occurred to you that the students might have already been given
the necessary information (or that it might be in the textbook), and
that the point of the homework is for them to demonstrate that they
know it or can look it up?

Has it occurred to you to spend a moment thinking before throwing
words like "stupid" around?

Engage your brain, Dan.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #16
Da*****@cern.ch (Dan Pop) writes:
In <87************@benpfaff.org> Ben Pfaff <bl*@cs.stanford.edu> writes:
Eric Sosman <er*********@sun.com> writes:
Janice wrote:
How can we cast the void* pointer to the type we need?

The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


This is literally true, but not very helpful. It is not usually
necessary to cast to or from void * because conversions between
void * and other pointers to object or incomplete type do not
require casts.


Bullshit! Of course such conversions require casts because this is how
explicit conversions are performed in C.

It is assignments between void pointers and other pointer types that do
not require casts, because the conversion is *implicitly* performed by the
assignment operator.


What exactly is wrong with Ben's statement? It looks entirely correct
to me.

Your statements appear to be correct as well, if you drop the
"Bullshit!".

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #17
Da*****@cern.ch (Dan Pop) writes:
In <41***************@yahoo.com> CBFalconer <cb********@yahoo.com> writes:
Eric Sosman wrote:
Janice wrote:

... snip ...

How can we cast the void* pointer to the type we need?

The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


Er - no cast needed nor desirable. Simply assign the void* to an
int* and the conversion is automatic.


At the expense of creating an additional object. Sometimes it is worth
it, but not always.


The original question was "How can we cast ...". I suspect the intent
was "How can we convert ...", and that whoever wrote the question fell
into the common trap of using the word "cast" (which refers only to an
explicit cast operator) to refer to a conversion (which is an action
that occurs during execution of the program).

Given a literal interpretation of the question, the only answer to
"How can we cast ..." is "With a cast operator".

But in most cases where you want to convert a void* pointer to some
pointer type, you're going to be assigning it anyway, or passing it as
a function argument. I can't think of a case where it makes sense to
create an "additional object" that wasn't there already.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #18
Michael Mair wrote:
CBFalconer wrote:
Dan Pop wrote:
Ben Pfaff <bl*@cs.stanford.edu> writes:
.... snip ...
It is assignments between void pointers and other pointer types
that do not require casts, because the conversion is *implicitly*
performed by the assignment operator.


You, of course, are in the habit of making such conversions and not
assigning the result anywhere?


Think of arguments for variadic functions -- I would rather
cast the void * (to an int object) to (int *) if I "claim" to
pass an int * than assign the value of the void * to an
additional variable which goes into the argument list...


Such arguments are immediately assigned to the appropriate nameless
parameter.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!

Nov 14 '05 #19


CBFalconer wrote:
Michael Mair wrote:
CBFalconer wrote:
Dan Pop wrote:

Ben Pfaff <bl*@cs.stanford.edu> writes:

... snip ...
It is assignments between void pointers and other pointer types
that do not require casts, because the conversion is *implicitly*
performed by the assignment operator.

You, of course, are in the habit of making such conversions and not
assigning the result anywhere?


Think of arguments for variadic functions -- I would rather
cast the void * (to an int object) to (int *) if I "claim" to
pass an int * than assign the value of the void * to an
additional variable which goes into the argument list...


Such arguments are immediately assigned to the appropriate nameless
parameter.


Umh, I am not sure what you mean. Maybe there is a
misunderstanding. Say, we have the following "program":

___________________________________________
#include <stdarg.h>
#include <stdio.h>

int foo (int is_intptr, void *ptr);
int bar (int howmany, ...);

int main (void)
{
int baz = 77;

printf("foo: %d\t", foo(1, &baz));
printf("baz: %d\n", baz);

return 0;
}

int foo (int is_intptr, void *ptr)
{
if (is_intptr)
return bar(1,(int *) ptr); /*<---*/
else
return -1;
}

int bar (int howmany, ...)
{
int m, *p;
va_list args;

va_start(args, howmany);

m = 0;
while (0 < howmany--) {
p = va_arg(args, int *);
m += *p - *p%42;
*p |= m;
}
va_end(args);

return m&0x42;
}
___________________________________________

Would you leave out the cast at the marked line in foo()?
If yes: What if the representations of (void *)&baz and
(int *)&baz were different?
Cheers
Michael
--
E-Mail: Mine is a gmx dot de address.

Nov 14 '05 #20
Michael Mair wrote:
CBFalconer wrote:
Michael Mair wrote:
CBFalconer wrote:
Dan Pop wrote:
> Ben Pfaff <bl*@cs.stanford.edu> writes:
>

... snip ...
> It is assignments between void pointers and other pointer types
> that do not require casts, because the conversion is *implicitly*
> performed by the assignment operator.

You, of course, are in the habit of making such conversions and not
assigning the result anywhere?

Think of arguments for variadic functions -- I would rather
cast the void * (to an int object) to (int *) if I "claim" to
pass an int * than assign the value of the void * to an
additional variable which goes into the argument list...


Such arguments are immediately assigned to the appropriate nameless
parameter.


Umh, I am not sure what you mean. Maybe there is a
misunderstanding. Say, we have the following "program":

___________________________________________
#include <stdarg.h>
#include <stdio.h>

int foo (int is_intptr, void *ptr);
int bar (int howmany, ...);

int main (void)
{
int baz = 77;

printf("foo: %d\t", foo(1, &baz));
printf("baz: %d\n", baz);

return 0;
}

int foo (int is_intptr, void *ptr)
{
if (is_intptr)
return bar(1,(int *) ptr); /*<---*/
else
return -1;
}

int bar (int howmany, ...)
{
int m, *p;
va_list args;

va_start(args, howmany);

m = 0;
while (0 < howmany--) {
p = va_arg(args, int *);
m += *p - *p%42;
*p |= m;
}
va_end(args);

return m&0x42;
}
___________________________________________

Would you leave out the cast at the marked line in foo()?
If yes: What if the representations of (void *)&baz and
(int *)&baz were different?


No, but that is because bar is variadic, and ALL parameter values
have to be of the type expected. There is no parameter type here
to specify the conversion.

I guess I spoke too soon in respect to variadic functions. But not
with respect to properly prototyped normal functions. After
pointers, variadic functions are one of the largest sources of
error in C programming.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #21
On 9 Dec 2004 12:49:37 GMT,
Dan Pop <Da*****@cern.ch> wrote
in Msg. <cp**********@sunnews.cern.ch>
In <I8********@news.boeing.com> "Default User" <fi********@boeing.com.invalid> writes:
Janice wrote:
What is the major reason for using void*?
When should we use void* for both input arguments and return value?
How can we cast the void* pointer to the type we need?
Do your own homework.


If it's homework, it's the most stupid kind of homework I have ever seen.


It sounds 100% like homework.
These are the things that have to be taught to the student, rather than
asking him to figure them out by himself.


I'm sure an attempt has been made to teach these things to Janice, but
since the effort seems to have been made in vain we're now treated to
homework questions.

--Daniel
Nov 14 '05 #22
On Wed, 8 Dec 2004 19:26:32 UTC, Eric Sosman <er*********@sun.com>
wrote:
Janice wrote:
What is the major reason for using void*?


Use a `void*' when you do not know the pointed-to
object's actual type, or do not care what it is, or
wish to conceal it.
When should we use void* for both input arguments and return value?


When both the arguments and the returned value meet
one or more of the criteria above.
How can we cast the void* pointer to the type we need?


The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


No. You can simple assign a void* to any other pointer type:

int *p_i;
void *pv;
....
p_i = pv;
pv = p_i;

NO cast needed.

--
Tschau/Bye
Herbert

Visit http://www.ecomstation.de the home of german eComStation
eComStation 1.2 Deutsch ist da!
Nov 14 '05 #23
On Wed, 8 Dec 2004 20:27:49 UTC, Eric Sosman <er*********@sun.com>
wrote:
Ben Pfaff wrote:
Eric Sosman <er*********@sun.com> writes:

Janice wrote:

How can we cast the void* pointer to the type we need?

The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


This is literally true, but not very helpful. It is not usually
necessary to cast to or from void * because conversions between
void * and other pointers to object or incomplete type do not
require casts.


C'mon, Ben: Leave her professor *some* excuse for taking
off a mark or two, won't you?

Janice: If your questions aren't homework, I repeat my
offer to try to answer more clearly if you'll explain your
difficulty in greater detail. If they *are* homework, you
can find the answers to these and to all your other C questions
in "The Annotated ANSI C Standard" by Herbert Schildt.

Urgs. Don't point to crap like this. Schildt knows nothing about the
standard! The only the book WAS good for was that it printed out the
old standard for less one had to pay for the original - but any word
oh him is crap and has nothing to do with the thing he means he
annostated.

--
Tschau/Bye
Herbert

Visit http://www.ecomstation.de the home of german eComStation
eComStation 1.2 Deutsch ist da!
Nov 14 '05 #24
Herbert Rosenau wrote:
On Wed, 8 Dec 2004 19:26:32 UTC, Eric Sosman <er*********@sun.com>
wrote:

Janice wrote:
[...]
How can we cast the void* pointer to the type we need?


The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


No. You can simple assign a void* to any other pointer type:

int *p_i;
void *pv;
...
p_i = pv;
pv = p_i;

NO cast needed.


The question was "How can we cast," not "How can we
convert" or "How can we assign." I gave an exact and
literal answer rather than a possibly more helpful one
because I suspected homework.

--
Er*********@sun.com

Nov 14 '05 #25
Herbert Rosenau wrote:
On Wed, 8 Dec 2004 20:27:49 UTC, Eric Sosman <er*********@sun.com>
wrote:

Janice: If your questions aren't homework, I repeat my
offer to try to answer more clearly if you'll explain your
difficulty in greater detail. If they are homework, you
can find the answers to these and to all your other C questions
in "The Annotated ANSI C Standard" by Herbert Schildt.

Urgs. Don't point to crap like this. Schildt knows nothing about the
standard!

He knows that.


Brian
Nov 14 '05 #26
Eric Sosman <er*********@sun.com> wrote:
Herbert Rosenau wrote:
On Wed, 8 Dec 2004 19:26:32 UTC, Eric Sosman <er*********@sun.com>
wrote:
Janice wrote:
How can we cast the void* pointer to the type we need?

The only way to cast anything is with a cast operator.
To convert a `void*' to an `int*', say, use `(int*)voidptr'.


No. You can simple assign a void* to any other pointer type: NO cast needed.


The question was "How can we cast," not "How can we
convert" or "How can we assign." I gave an exact and
literal answer rather than a possibly more helpful one
because I suspected homework.


Ordinarily, I'd agree with you. In this case, however, we're dealing
with casts. The OP might end up being yet another of the legion who
really do believe that you need to cast left, right and centre, and in a
few years' time we'll have to deal with malloc()-caster number thatmuch.

Richard
Nov 14 '05 #27

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

Similar topics

192
by: Kwan Ting | last post by:
The_Sage, I see you've gotten yourself a twin asking for program in comp.lang.c++ . http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=45cd1b289c71c33c&rnum=1 If you the oh so mighty...
188
by: infobahn | last post by:
printf("%p\n", (void *)0); /* UB, or not? Please explain your answer. */
7
by: sunglo | last post by:
My doubt comes from trying to understand how thread return values work (I know, it's off topic here), and I'm wondering about the meaning of the "void **" parameter that pthread_join expects (I...
31
by: Twister | last post by:
Hi All, I have a question which might sound very basic. I have a simple structure: struct simple{ void *buffer; }; typedef struct simple Simple;
4
by: Andreas Klimas | last post by:
hello, no many words, I will start with an example instead int foo(void *r) {...} void test(void) { int *x=0; foo(x); /* seems to me as valid */ }
53
by: subramanian100in | last post by:
I saw this question from www.brainbench.com void *ptr; myStruct myArray; ptr = myArray; Which of the following is the correct way to increment the variable "ptr"? Choice 1 ptr = ptr +...
10
by: Zero | last post by:
Hello all, I wonder about void? To which category in the C programming language does it belong? Of how many bits consits void? Is it possible to define a varibale called void a;
2
by: Barry | last post by:
The problem brought by one earlier post from comp.lang.c++ http://groups.google.com/group/comp.lang.c++/browse_thread/thread/bf636c48b84957b/ I take part of the question and reproduce the code to...
28
by: junky_fellow | last post by:
Guys, Consider a function func(void **var) { /* In function I need to typecast the variable var as (int **) I mean to say, I need to access var as (int **) }
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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
isladogs
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...

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.