C# | Interview Question | Value type vs Reference Type

  Рет қаралды 13,080

Rohit Sharma

Rohit Sharma

3 жыл бұрын

In this video I'll discuss about the difference between the Value and Reference type.
Also, I'll discuss about the main reason why interviewer ask this question.
#csharp #interviewquestion

Пікірлер: 15
@aitorgutierrez715
@aitorgutierrez715 7 ай бұрын
well this turned out easier to understand than i thought, i've suffered for 2 months trying to figure these concepts and you simplified it all in less than 10 minutes :) thanks from venezuela
@pistolerointergalactico9019
@pistolerointergalactico9019 11 ай бұрын
Senor Rohit i want to congratulate you because of the clarity of the video, great job and thank you
@techz1511
@techz1511 3 ай бұрын
very good video brother
@786adeelghaffar
@786adeelghaffar 11 ай бұрын
Very Informative Video, great work done
@fandtm8054
@fandtm8054 2 жыл бұрын
Very useful video thank you sir❤❤
@meenakshisudhakarok2112
@meenakshisudhakarok2112 10 ай бұрын
Thanks for this clear explanation
@swarajadsul1211
@swarajadsul1211 Жыл бұрын
Thank you you clarify very nicely
@tempsanity
@tempsanity 6 ай бұрын
Very good explanation.
@luisurbaez971
@luisurbaez971 Жыл бұрын
Thank you sir
@suryapradipta6191
@suryapradipta6191 9 ай бұрын
in the function call, what if the void Method(string x), is the x will be stored on a heap? since the string is a reference type
@petrnaboko8720
@petrnaboko8720 9 ай бұрын
All reference types are stores in the heap. So, when method "Method" is called, 'x' will be send to method by the pointer, which address points to the heap where string is really exist. We are not sending the whole String to the method. We just sending a pointer(address points to the object stored in heap) into the method as parameter. But, in case void Method(int x) -> here we sending to method variable x(a real variable X, copy of X).
@luisurbaez971
@luisurbaez971 Жыл бұрын
You're the nate gentile of india
@irvinglee8622
@irvinglee8622 Жыл бұрын
I just got this question in my interview
@user-wn1nt6fd5e
@user-wn1nt6fd5e Жыл бұрын
pictorial rep 👌👌👌
@longb1913
@longb1913 Жыл бұрын
why you yelling
C# Value Types and Reference Types
32:49
Coding Tutorials
Рет қаралды 4,6 М.
C# Out parameters Vs REF parameters
6:43
.NET Interview Preparation videos
Рет қаралды 279 М.
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 23 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 1,8 МЛН
Call By Value & Call By Reference in C
8:34
Neso Academy
Рет қаралды 1,3 МЛН
C#: The Heap and the Stack
9:50
Edward Tanguay
Рет қаралды 36 М.
The weirdest way to loop in C# is also the fastest
12:55
Nick Chapsas
Рет қаралды 248 М.
VALUE TYPE AND REFERENCE TYPE (STACK AND HEAP) IN C# PROGRAMMING
30:20
Learning Never Ends
Рет қаралды 56 М.
Abstract Class vs Interface (Real Application Use) in C# .NET
6:18
Interview Happy
Рет қаралды 54 М.
Where are types allocated in .NET and why people get it so wrong
14:35
C# Value vs Reference Types Explained
6:40
Mark Inman
Рет қаралды 1,5 М.
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН