string data will go and store in string buffer which is in RAM not in heap partition instance of a class stored in heap,that class name and its address stored in stack
Console.writeline(" text"); Console.write(); Console.write("text"); // Text ; // Text /* Text*/; int text = 34; Console.writeline("text + text "); Boolean - sentence = true; Floating point numbers - float name of object;
Console.Write("Enter user name:"); string n = Console.ReadLine(); Console.Write("Enter user age"); int age = int.Parse(Console.ReadLine()); Console.Clear(); Console.WriteLine("User Name{0} User Age{1}",age,n); showing 2 errors . what is the problem ??
Please read about RAM and give a practical example, how the bytes are stored on the RAM, instead of drawing a SMALL Rectangle into a BIG Rectangle- It gets extremely confusing. For example, why not start drawing a smaller Tree inside a bigger Tree, a smaller Car in a Bigger Car and call it how the memory is "allocated".. This is the reason, your conceptual understanding is very confusing.