-
C variable
Hi,
I wanted to use a variable which is not initially assigned to any value, but later in program i want to assign it to zero and than increment it and return the updated value to the same variable,
It would look like this
Code:
function()
{
int variable;
.
.
variable =0;
/* I cannot do this because this is actually a header file and will be continuously called, and hence i cannot use the updated value of this variable */
.
.
.
variable++;
return(variable);
} /* end of function */
-
got it
I found the way, thank you