swiseman7411 swiseman7411
  • 02-12-2019
  • Computers and Technology
contestada

Declare a char array named line suitable for storing C-strings as large as 50 characters, and write a statement that reads in the next line of standard input into this array. (Assume no line of input is 50 or more characters.)

Respuesta :

Khoso123
Khoso123 Khoso123
  • 04-12-2019

Answer:

char line[50];

cin.get(line,50);

Explanation:

The "char" data type stores character data in a fixed-length field.

Answer Link

Otras preguntas

Find the sum of 2/9+1/9?
who decided the election of 1800 and why ?
Patrick ate 3/5 of a small pizza on Friday night. For lunch on Saturday , he ate 1/2 of the leftover pizza. How much pizza did he eat for lunch on Saturday?
which number is 100 less than 61 tens?
Wanda, the Channel 1 weather person, said there was a 30% chance of rain on Saturday and a 30% chance of rain on Sunday. Should Wanda be fired? HELP PLEASE
how can you simplify 24                                ---                                30
Add the following fractions.3/8 + 5/12 =
I am two numbers, the sum of my numbers is 100, the difference between my two numbers is 30,
Scientists divide rocks into groups based on_________
who decided the election of 1800 and why ?