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
blsea [12.9K]
2 years ago
14

Assume user_name equals "Tom" and user_age equals 22. What is printed on the console when the following statement is executed? c

out << user_age << " \nis " + user_name << "'s age.";
Computers and Technology
1 answer:
12345 [234]2 years ago
8 0

Answer:

The ouput of the given code is :

22

is "Tom's age.

Explanation:

Here in this code the variable user_name and user_age are initialized to  "Tom" and 22 respectively as statement is given in the question i.e  cout << user_age << " \nis " + user_name << "'s age.";.This line will print the user_age i.e 22 after that the control moves to the next line and print is "Tom's age.

Following are the code in c++

#include <iostream> // header file

#include <string>

using namespace std;

int main() // main function

{

   string user_name="Tom";

   int user_age= 22;

cout << user_age << " \nis " + user_name << "'s age.";

return 0;

}

Output:

22

is "Tom's age.

You might be interested in
What type of software resides on a computer’s hard drive, and controls the CPU and all other activity between components?
myrzilka [38]
Operating System  (OS) is the answer.

An application runs in/on an OS.  It is not the OS itself. Like Word or Chrome are applications. 

Systems is too generic and not specific enough to mean anything in this context.  Throw away answer.

Network Operating System does not 'usually' run on a hard drive but on memory chips in things like routers, wireless access points and switches that move network traffic.


3 0
3 years ago
How do I cancel a friend request?
dusya [7]

Answer:

By pushing cancel

Explanation:

It's simple

3 0
3 years ago
Read 2 more answers
After a system is released and the user base grows, the demands on the development and support team will ______.
otez555 [7]

After a system is released and the user base grows, the demands on the development and support team will increase.

The development team can scale vertically by adding new people to the team.

6 0
3 years ago
Help me please my teacher is going to go in my slide Help me please
Maru [420]

Answer: just follow the instructions its like making a lego set

8 0
2 years ago
Which types of files are saved with the .Mp3 and .Zip extensions? Files are saved with the .Mp3 extension and files are saved wi
maw [93]

Answer:

Audio files have the ".mp3" file extension and compressed files have the ".zip" file extension.

Explanation:

6 0
2 years ago
Other questions:
  • Type dig www.example A in order to get the IP address of www.example. What’s the TTL of the A record returned in the response? W
    9·1 answer
  • A ________ is a collection of forms, reports, queries, and programs that serves as an intermediary between users and database da
    6·1 answer
  • If you want to track users and sessions across multiple domains, what must you set up?
    11·1 answer
  • PLEASE HELP
    6·1 answer
  • PLEASE HELPPPPPPP
    15·1 answer
  • 9. What is composition? Why is composition important?
    11·1 answer
  • Calculate the number of telephone
    5·1 answer
  • Fill in the blanks : To store 3 character a computer occupies...................bytes memory space​
    8·2 answers
  • Many digital libraries have much more information than traditional libraries
    13·1 answer
  • If you said the bottom margin, you are talking about what?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!