Re: RunTime Datatype Determination in C
- From: "dbansal" <bansal.dk@xxxxxxxxx>
- Date: 23 Nov 2006 22:03:06 -0800
Richard Tobin wrote:
In article <1164291520.554315.129740@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
manish <83.manish@xxxxxxxxx> wrote:
we have avariablr
int bps; // bps determined during run time
we want appropriate declaration depending upon bps.
I don't really see why you want to do this, but perhaps you could use
a union of the possible types, and access the appropriate member
depending on bps?
-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Hi all,
I have a program. Please tell me what do you think about this.
int main(int x)
{
if(x==1)
{
int myval;
printf("size of integer myval: %d\n",sizeof (myval));
}
else
{
float myval;
printf("size of real myval: %d\n",sizeof (myval));
}
}
.
- Follow-Ups:
- Re: RunTime Datatype Determination in C
- From: CBFalconer
- Re: RunTime Datatype Determination in C
- References:
- RunTime Datatype Determination in C
- From: manish
- Re: RunTime Datatype Determination in C
- From: Richard Tobin
- RunTime Datatype Determination in C
- Prev by Date: Re: Need your HELP: C in LINUX
- Next by Date: Re: Need your HELP: C in LINUX
- Previous by thread: Re: RunTime Datatype Determination in C
- Next by thread: Re: RunTime Datatype Determination in C
- Index(es):
Relevant Pages
|
|