Effacer les filtres
Effacer les filtres

storage class for block scope variable

1 vue (au cours des 30 derniers jours)
DongWook Shin
DongWook Shin le 5 Déc 2019
How can I make block scope variable with static specifier?
I would like to make variable 'result' with static specifier. But I couldn't it.
For example,
int8_t sumInt8(int8_T intput1, int8_T intput2)
{
static int8_T result;
result = intput1 + input2;
return result;
}
Which storage class can declare it with static specifier?

Réponses (0)

Catégories

En savoir plus sur View and Analyze Simulation Results dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by