CAN WE TYPE CAST AN INTEGER AS (VOID *)X..(Like can I return a value (void *)x)
- From: "Abhishek" <abhisheksgumadi@xxxxxxxxx>
- Date: 29 Jan 2006 08:52:14 -0800
now suppose I have declared an integer value inside a function as
int x;
now if the return type of the function is of type (void *) then can I
write
return((void *)x) in side the function?
I came across this in a document on multithreading in C..I can post the
exact portion of code which works correctly with such an assignment if
you people want.
Please clarify my doubt.I hope I have conveyed it properly.
.
- Follow-Ups:
- Prev by Date: Re: UNIX command prompt
- Next by Date: Re: NULL with representation other then all bits 0
- Previous by thread: Global Array with size for input
- Next by thread: Re: CAN WE TYPE CAST AN INTEGER AS (VOID *)X..(Like can I return a value (void *)x)
- Index(es):
Relevant Pages
|