Local static variables in a function maintain their value between function calls, allowing the function to remember state information across different invocations. Unlike regular local variables, static local variables are initialized only once and preserve their last modified value throughout the program's runtime.