TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Munish Kumar
1.3k
451
9.9k
Where does the data members of a class are stored?
Jan 7 2019 7:08 AM
I am bit confused about it that where does the data members of a class are stored, in stack or heap.
If i have below code:
class
Test
{
int
A = 0;
}
then, where does "A" stores?
I know value types stores in stack and reference types stores in heap, so class "Test" would store in Heap, but confused about "A".
Could anyone help me to understand this.
Reply
Answers (
5
)
How to Avoid Session Hijacking in Web Applications
How to create a scheduler in sql