String literal (&str) and string object (String) variables are stored in the computer's memory when a program runs. Where is a &str and a String stored? Group of answer choices heap, heap heap, stack stack, stack stack, heap

icon
Related questions
Question
  1. String literal (&str) and string object (String) variables are stored in the computer's memory when a program runs. Where is a &str and a String stored?
Group of answer choices
heap, heap
heap, stack
stack, stack
stack, heap
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer