Is there any datat types to assign dynamic data's to an array?
I mean I would like to assign datas dynamically in a real time environment. I need to pass those dynamic datas to a variable and need to use it with an array.( the variables inside the array should contain the updated as soon as the variables value changed)
Ex:
#include
a1=p1.0;
a2=p2.0;
...upto
a16=p16.0; // The value of p1.0 will vary dynamically and the values assigned to a1, a2,.. a16 must be passed to the array I am going to use inside the main.
Main()
{
int i;
char c[]={a1,a2,...a15}
for(i=0;i<=15;i++)
{
if( c[i]==1)
{
bla bla..
}
}
}
2007-08-29
19:45:20
·
4 answers
·
asked by
Kannan
1
in
Computers & Internet
➔ Programming & Design