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]
2 years ago
11

Write a program that defines an object of type double. Define a pointer that points to that

Computers and Technology
1 answer:
Sliva [168]2 years ago
3 0

Answer:

#include <iostream>

using namespace std;

int main()

{

   //make a double

   double object = 1.5;

   //make a pointer

   double* pointer;

   //make the pointer point to address of the object

   pointer = &object;

   //print by dereferencing a pointer

   cout<<*pointer;

   return 0;

}

You might be interested in
What allows files containing text, programs, graphics, numerical data and so on to be downloaded off or uploaded onto a network?
Drupady [299]

Answer:

File Transfer Protocol

Explanation:

In computer networks and data communication, the client- server network architecture is very popular, in this network architecture, bigger computers designated as servers respond to clients request for information (This could be text, programs, graphics numerical data etc.) The File Transfer Protocol shortened as FTP is the standard network protocol that allows the transfer of these files between the clients and servers.

This protocol is build for the client server achitecture and it is the protocol by which files are shared between computers  on the internet.

5 0
3 years ago
Create two algorithms for an everyday problem such as computing sales tax or figuring out the number of tables to seat guests. T
tamaranim1 [39]

Answer:

b

Explanation:

3 0
3 years ago
Can someone tell me how this is a SyntaxError! (Python3)
Basile [38]

Answer:

The expression on line 9 required 2 brackets

Explanation:

Given

The attached code

Required

Why syntax error.

The error points to line 10, but the error is actually from line 9

To get an integer input, the syntax is:

variable-name = int(input("Prompt"))

From the attached code, the line 9 is:

amount = int(input("Enter cheese order weight: ")

By comparing the syntax to the actual code on line 9, only 1 of the brackets is closed.

<em>This, in Python 3 is a sytax error</em>

6 0
3 years ago
Why did Constantine establish a new capital of the Roman Empire in Byzantium?
mestny [16]

Answer:

Explanation:

For to stablish with more power his new empire based on christianity.

5 0
3 years ago
Read 2 more answers
Which of the following statements is true?
jeka57 [31]

Answer: Constructors can specify parameters but not return types.

Explanation:

public class Student {

 int roll_no;

 public Student(int a) {

   roll_no = a;

 }

public static void main(String[] args) {

   Student abs = new Student(10);

   System.out.println(abc.roll_no);

 }

}

In the above code we have illustrated the working of constructors. We have a class with the name Student. then a constructor is created of the class called as the class constructor. In the main we create an object of the class and with this object we invoke the constructor and also pass a parameter. Here in the code we are passing the roll no of the student.

So we can say that constructor is called during the runtime when the object created invokes the constructor so a constructor can have many arguments but it does not have a return type.

7 0
3 years ago
Other questions:
  • What is the first step to creating a PivotTable?
    9·2 answers
  • is there anybody out there who is a social butterfly like me? If so then you can tlk to me on this. and to anybody out there tha
    12·1 answer
  • I think it is a or c is it right?
    7·1 answer
  • It is believed that Taiwan is the original home of these early Oceania explorers. Maori Lapita Polynesians Aborigines
    13·2 answers
  • . Why use a sensitivity analysis?
    14·1 answer
  • D. Chipboard
    14·1 answer
  • What are the missing words in the program?<br> divide(numA,numB):<br> numA/numB
    9·2 answers
  • OkkKkkkkkEYEYYEYEYEY BYEYYEYEYEyeeyeyyeEYEy if you know you know
    11·1 answer
  • Ano ang dalawang paraan sa paggawa ng abono?​
    6·1 answer
  • Im trying to do an animation only using simplegui in python and my objective is make the ball enters frame, be confused and jump
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!