How to calculate the cubic value of 3 by using static local plastic variables in custom functions? I have a beginner's attempt, but I can't. Please advise.
Just remove the semicolon. Static storage is not used in the program. You only performed this function once.
# include & ltstdio.h & gt
void AddOne()
{
Static intilnt = 3;
iint = ilnt * ilnt * ilint
printf("%d\n ",ilnt);
}
int main()
{
printf(" value ");
AddOne();
Returns 0;
}