Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


In which area global, external variables are stored?

Answers were Sorted based on User's Feedback



In which area global, external variables are stored?..

Answer / vishnu

Global variables if not initialised when decleared then it
will be stored in BSS(Block Segmented by Symbol). If it is
initilised then it will be stored in Data area.
Extern variables are stored int Data area.

Is This Answer Correct ?    6 Yes 0 No

In which area global, external variables are stored?..

Answer / samrat

Global & static variables are stored in data segment.

If we look at other types.. Local Variables are stored in the Stack. Register variables are stored in Register.

Dynamically allocated memory uses the Heap. Instructions are stored in code segment and the extern variables are stored in the data segment.

Is This Answer Correct ?    5 Yes 1 No

In which area global, external variables are stored?..

Answer / mrinal

The global or external variables are stored on the HEAP.

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More C Interview Questions

Which of the following are valid "include" formats? A)#include and #include[file.h] B)#include (file.h) and #include C)#include [file.h] and #include "file.h" D)#include <file.h> and #include "file.h"

15 Answers   Accenture,


WHAT IS LOW LEVEL LANGUAGE?

2 Answers  


main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }

2 Answers   CSC,


What is the output of the program given below #include<stdio.h> main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

21 Answers   ADITI, Student, TCS,


What is a scope resolution operator in c?

0 Answers  


Explain how many levels deep can include files be nested?

0 Answers  


What does #pragma once mean?

0 Answers   Celstream,


who is the father of c

4 Answers   Infosys,


Explain what does it mean when a pointer is used in an if statement?

0 Answers  


What is the difference between the local variable and global variable in c?

0 Answers  


Program to find largest of three numbers without using comparsion operator?

3 Answers  


Is it acceptable to declare/define a variable in a c header?

0 Answers  


Categories