English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-03-03 09:35:13 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

As you may know, a pointer has many uses to it, one of which allows you to pass the pointer to a function and store and maintain the any new value the function may provide for that pointer. Now a static variable allows a variable to maintain it's value that may be computed within its local function, no matter how many times that function is called externally. So, a static pointer is basically a pointer that my retain its value within the function where it is defined. As the answer above me mentioned, a static pointer therefore wouldn't make much sense as you'd be somewhat contradicting the uses for a pointer and a static variable.

2007-03-03 12:46:46 · answer #1 · answered by Entfusion 3 · 0 0

A static pointer is a pointer that points to a static memory location. I don't think that static pointers are used very much because that pretty much goes against the purpose of pointers; to be able to point to different objects.

2007-03-03 17:45:47 · answer #2 · answered by BigRez 6 · 0 0

go to
www.cprogramming.com

it has all your coding and turorial needs for C and C++

2007-03-03 17:38:13 · answer #3 · answered by patdog 3 · 0 0

fedest.com, questions and answers