what is local variable ????

what is it function for ???

Recommended Answers

Did you Search the web first for its definition and uses?

Jump to Post

All 2 Replies

A local variable is only available within the current scope (usually that means between { and }). It is a way to write code without having to consider how the underlying memory is being handled but without having to have every variable you use at global scope. In general, it is a way to store data local to a scope in a way that makes it easy to manipulate and reason about.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.