A
Alain Spineux
in
int f(int n)
{
int tab[n];
tab[n]=1;
return tab[n];
}
What does
int tab[n];
means ?
Thanks
int f(int n)
{
int tab[n];
tab[n]=1;
return tab[n];
}
What does
int tab[n];
means ?
Thanks
in
int f(int n)
{
int tab[n];
tab[n]=1;
return tab[n];
}
What does
int tab[n];
means ?
Thanks
in
int f(int n)
{
int tab[n];
tab[n]=1;
return tab[n];
}
What does
int tab[n];
means ?
It's a "variable length array" something added to C99 and generally a
really bad idea. Suppose I inadvertently get your function called
with n == 2^31 or something huge. Why this was added to C is beyond
me, I certainly will NEVER use it for this exact reason.
It's a "variable length array" something added to C99 and generally a
really bad idea. Suppose I inadvertently get your function called
with n == 2^31 or something huge. Why this was added to C is beyond
me, I certainly will NEVER use it for this exact reason.
in
int f(int n)
{
int tab[n];
tab[n]=1;
return tab[n];
}
What does
int tab[n];
means ?
Thanks
in
int f(int n)
{
int tab[n];
tab[n]=1;
return tab[n];
}
What does
int tab[n];
means ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.