Q. where is the below variables stored ?
- volatile, static, register

Answer Posted / c p

local variables-->stack memory
global variable-->global or static memory
register variable-->CPU registers
static variable-->global and static memory
(stack memory+(globel memory or static memory)+heap memory)=DATA MEMORY

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of bit field?

755


What is volatile variable in c with example?

573


Differentiate Source Codes from Object Codes

802


What does %p mean c?

608


What is default value of global variable in c?

549






Should I learn c before c++?

584


What is a program flowchart and explain how does it help in writing a program?

649


Can the “if” function be used in comparing strings?

576


What is the advantage of a random access file?

629


What is c token?

597


How can my program discover the complete pathname to the executable from which it was invoked?

648


Why does this code crash?

602


What is dynamic memory allocation?

793


What is declaration and definition in c?

511


What is difference between constant pointer and constant variable?

609