Interviewer And Interviewee Guide

Data Warehousing Basics Interview Question:

What is static and local variable?

Submitted by: Administrator
Static variable is not created on function stack but is created in
the initialized data segment and hence the variable can be shared across the multiple call of the same function. Usage of static variables within a function is not thread safe.

On the other hand local variable or auto variable is created on function stack and valid only in the context of the function call and is not shared across function calls.
Submitted by: Administrator

Read Online Data Warehousing Basics Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.