188k views
4 votes
Having trouble with this please help​

Having trouble with this please help​-example-1
User Doody P
by
7.3k points

1 Answer

3 votes

Answer:

C. "text string"

Step-by-step explanation:

In programming, when you want to include a text string (a sequence of characters) in your code, you enclose the text within double quotation marks ("). This is known as a string literal.

I put an example in the picture below!

The double quotation marks indicate to the compiler that the characters between them should be treated as a string of text. Using single quotation marks (' ') or forward slashes ('//') as shown in the options wouldn't serve the purpose of defining a text string in programming languages like C++, Java, or Python.

i hope this helps! <3

Having trouble with this please help​-example-1
User Wang Dingwei
by
8.1k points

No related questions found