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
IgorC [24]
4 years ago
6

How can I write an assignment statement that stores the character 'X' in a variable ch?

Computers and Technology
1 answer:
Gre4nikov [31]4 years ago
5 0

Answer:

In C++ we can assign a character to the variable by using the below statement.

ch='X';

Explanation:

The complete program for assigning a character to the variable is given as

#include<iostream>

#include <conio.h>

using namespace std;

main()

{

char ch;

ch= 'X';

cout<<"output of variable Ch ="<<ch;

getch();

}

In above program Char is the data type used for character type variables. ch= 'X' stores X in ch. Then output will shown through cout.

You might be interested in
The transmission method that sends data to every device on a lan is known as a _____ transmission.
lina2011 [118]
The transmission method that sends data to every device on a lan is known as a broadcast transmission. This type of transmission is also referred toa as <span> one-to-all transmission method. The network carries a message to all devices at the same time.
</span><span>Sometimes broadcasts are a result of network devices continually announcing their presence in the network, so that other devices don't forget who is still a part of the network.</span>
4 0
4 years ago
Read 2 more answers
Which of the following scenarios describes an IT professional using the Internet and computer system access in an unprofessional
pantera1 [17]

Answer:

All of the above

Explanation:

6 0
3 years ago
Provide an example of a question that could NOT be answered with a binary message. Explain why this is the case, making referenc
solong [7]
This is a question with a much simpler answer given its open ended ness - a representation merely means, given binary data, we can determine what 'thing' that binary data corresponds to.

<span>That makes the question unanswerable, because words can all be represented in binary data, and the question cannot be answered without those. Thus, all answers we can convey have a binary representation of some form (that form being the translation of the words we used to communicate the answer into binary data).</span>
7 0
4 years ago
What is the output of this program? Assume the user enters 3, 6, and 11.
erica [24]

Answer:

14.0

Explanation:

3 0
1 year ago
You are creating a query for a website. The query
stepan [7]
Answer is A, Action query
6 0
2 years ago
Other questions:
  • Achieving a degree in computer forensics, information technology, or even information systems can provide a strong foundation in
    11·1 answer
  • Where are all of your documents saved?
    14·2 answers
  • What is Mainframe computer​
    14·1 answer
  • How does kinetic energy affect the stopping distance of a small vehicle compared to a large vehicle?
    14·2 answers
  • What is the difference between a sequential program and an event-driven program?
    9·1 answer
  • Understanding the context of information allows you to apply it to everyday situations as opposed to just___facts like names,dat
    12·1 answer
  • Which of the following statements about cover letters is false?
    14·2 answers
  • Does anyone else have edge and think its not the awful?
    12·2 answers
  • Differentiate the term, "bundling," as applied to a Mac/Apple computer and a PC.
    5·1 answer
  • If anyone want to talk come here actual question who likes anime and what kind do u watch
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!