1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dalvyx [7]
3 years ago
7

In memory, C++ automatically places a ________ at the end of string literals.

Computers and Technology
1 answer:
solong [7]3 years ago
6 0

Answer:

c.Null Terminator.

Explanation:

in memory C++ automatically places the null terminator also called null pointer at the end of the string.For example:-

#include<iostream>

using namespace std;

int main()

{

    char s[200];

   s="every thing is great";

   int i=0;

   while(s[i]!='\0')

  {

      cout<<s[i];

i++;

  }

return 0;

}

We have taken a string and stored "every thing is great" in it after the next position of the character t in the string there will be a null character.Which C++ automatically places at the end.That's why we are running a loop till the  character in the string is not '\0' null character

You might be interested in
Write a program that reads in a text file, infile.txt, and prints out all the lines in the file to the screen until it encounter
ivanzaharov [21]

Answer:

Explanation:

f=open("infile.txt","r")

flag=True

while(flag):

s=f.readline().strip()

if(len(s)>=4):

print(s)

else:

flag=False

8 0
3 years ago
An uniterruptible power supply
velikii [3]

Answer:

An uninterruptible power supply  is an electrical apparatus that provides emergency power to a load when the input power source or mains power fails.

Explanation:

Your welcome :) PLZ mark brainliest

4 0
3 years ago
What is the technical term of a native programming language?​
topjm [15]

Native Code Or Machine Language

4 0
3 years ago
A ____________ is the intersection of a column and row in an excel spreadsheet.
kogti [31]

Answer:

a cell is the intersection of a column and row in an excel spreadsheet.

4 0
3 years ago
How to take screenshots on a lenovo t440p?
dybincka [34]

hold doen your power butten and volume butten


5 0
4 years ago
Other questions:
  • In 2–4 sentences, describe how you would center text.
    11·1 answer
  • . Use of communications and information systems that are familiar to users is a part of which key principle? A. Security
    14·2 answers
  • Which term describes the distance from one point on a wave to the same point on the next wave?
    13·2 answers
  • 3. State whether the given statements are true or false. a. The computer is called a data processor because it can store, proces
    13·1 answer
  • The data _____ component of a database management system (DBMS) is used to create and maintain the data dictionary. manipulation
    14·1 answer
  • What is the output?
    12·1 answer
  • Por favor definir que es un pseudocódigo y que es un diagrama de flujo.
    13·2 answers
  • PLEASE ANSWER
    6·1 answer
  • We initialize the parameters to all zero values and run the linear perceptron algorithm through these points in a particular ord
    8·1 answer
  • "The constructor signature is defined as the constructor __________ followed by the __________. (3 points)
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!