answersLogoWhite

0

In C, a variable declared as static in a function is initialised once, and retains its value between function calls.

The default initial value of an uninitialized static variable is zero.

If a function or global variable is declared static, it can only be accessed in that file.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

2 types of identifiers in C programming language?

1. identifiers beginning with a letter 2. identifiers beginning with an underscore


What is the identifiers in turbo c?

all keywords


Is the identifiers 'name' and 'NAME' different in c?

Yes they is different, C language are case-sensitive.


What are the balance identifiers for disbursement accounting?

C, o, u, e


What are the balance identifiers for disbursement accounting stages?

C, o, u, e


Can a reserved word be used as an identifier name?

Identifiers are a bit more generic in the context of programming. If you mean, in terms of the C languages (C, C++, C#), the question is the reverse...keywords may NOT be used as identifiers. For example, you cannot use keywords such as "int", "float", "double", etc. as the names of variables or objects.


What is the use of define key word in c?

Actually, the preprocessor is not part of the C compiler, but here you are: #define is meant to define symbols. Examples #define NULL ((void *)0) #define getchar() getc(stdin)


Are the identifiers name and NAME different in c?

If you mean 'are identifier of an object and nameof an object synonyms?', then yes, they are.


What is the exact definition of identifiers in c language?

An identifier is a name. All names must be declared with a type.


What is the maximum length allowed in difining a c variable?

In order to claim compliance with ANSI C standards, the minimum maximum for internal identifiers and macros is 63 characters, and external identifiers is 31 characters. Vendors are encouraged to avoid imposing a maximum value whenever possible.


Which class is used to define the controls in c sharp?

.Ascx class file is used to define the controls in c#


What are c-sharp tokens?

In C#, tokens are the smallest units of code that are meaningful to the compiler. They include keywords (like class and void), identifiers (such as variable and method names), literals (like numbers and strings), operators (like + and -), and punctuation (such as semicolons and braces). Tokens are essential for the syntax and structure of C# programs, as they help define the elements of the code and how they interact. The compiler uses these tokens to parse and understand the code.