0

Is it possible to reset the increasing value of static variable

Suppose we have a static variable inside a function. Its value keeps changing whenever i call the function, based on the code inside function. How to i reset that variable to its initial value without affecting function's logic.

2nd Nov 2018, 9:22 PM
Anubhav Singh Parihar
Anubhav Singh Parihar - avatar
1 Respuesta
0
Can you share the code?
2nd Nov 2018, 11:21 PM
Meharban Singh
Meharban Singh - avatar