86. char greeting[] = {'H', 'e', 'l', 'l', 'o'}; cout << greeting;
Added by David A.
Close
Step 1
Step 1: The given code initializes a character array "greeting" with the values H^(', e^(', I^(', I^(', T^(', O^('). Show more…
Show all steps
Your feedback will help us improve your experience
Vysakh M and 59 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
(A) Hello (B) Error (C) No output (D) $\mathrm{H}$
Programming and Data Structures
Arrays, Pointers and Structures
4.19 LAB: Print string in reverse Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Done", "done", or "d" for the line of text. Ex: If the input is: Hello there Hey done then the output is: ereht olleH yeH 4.19.1: LAB: Print string in reverse main.cpp #include <iostream> using namespace std; int main() { /* Type your code here. */ return 0; }
Samuel G.
Problem 4: Write a program which asks user to enter a word of any 8 random letters in small case. The program then converts the word in capital case and displays the new word. Hint: use cin.get() function so that you don't need to press ENTER every time (your program run should be similar to the sample run below). Use ASCII table to find out how small letter can be changed to capital letter. You cannot use string or arrays. Only use character variables. Enter an 8 letter word: mudasssar Your entered word in capital case is MUDASSAR
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD