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

Tell me when would you use a pointer to a function?

826


Write a code to generate divisors of an integer?

835


What is volatile variable in c with example?

796


Write a C program in Fibonacci series.

864


Can you please explain the scope of static variables?

819


What is function prototype in c language?

829


What is omp_num_threads?

849


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2431


Is c procedural or object oriented?

803


Explain About fork()?

864


What is the code for 3 questions and answer check in VisualBasic.Net?

1926


Why do we need volatile in c?

955


How can I find out how much free space is available on disk?

848


What are header files and explain what are its uses in c programming?

859


Write a program to check palindrome number in c programming?

796