In which area global, external variables are stored?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are keywords c?

603


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

825


What is scope of variable in c?

571


How arrays can be passed to a user defined function

579


How do you do dynamic memory allocation in C applications?

630






struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

766


code for find determinent of amatrix

1519


What is actual argument?

591


How would you obtain the current time and difference between two times?

730


What is the difference between array and pointer in c?

581


What is a rvalue?

751


Difference between macros and inline functions? Can a function be forced as inline?

712


What is the difference between ā€˜gā€™ and ā€œgā€ in C?

2550


Why c is called procedure oriented language?

579


What does emoji p mean?

603