what is local variable ????

what is it function for ???

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.