Computer Science, asked by daddysumi4983, 1 year ago

Specification of defining static int in c lang

Answers

Answered by DSamrat
1
Hey.

A static variable inside a function keeps its value between invocations.

A static global variable or a function is "seen" only in the file it's declared in.

Thanks.

Answered by Anonymous
2

Question:

Specification of defining static int in C languages.

Answer:

Static variables have the characteristics of preserving their data types even it may that the values are out of their scopes. Not, only in C but, the use of static into JAVA and Python as well and it functions the similar in every cases.

A static int variable remains in memory while the program is running. Static into is generally used to accept integer type of data values. It can store the highly of 4 bits. A normal or auto variable is destroyed when a function call where the variable was declared is over. But it should be noted that, an integer data type always stores simple integral value. If the data is given as a number with float point then it stores the integral part only ignoring the decimal part.

Similar questions