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
padilas [110]
3 years ago
5

When passing a non-const argument to a const function, the const_cast operator should be used to cast away the "const-ness" of t

he function.
True

False
Computers and Technology
1 answer:
Nataly_w [17]3 years ago
4 0
False i think I’m not sure
You might be interested in
Write a C++ program that computes an approximation of pi (the mathematical constant used in many trigonometric and calculus appl
Verizon [17]

Answer:

#include <iostream>

#include<cmath>

using namespace std;

int main()

{

double total = 0;

double check=1;

double ct=0;

double old=1;

while( fabs(total - old) > 0.00005 )

{

old=total;

total=total+check*4.0/(2.0*ct+1);

ct=ct+1;

check=0.0-check;

}

cout<<"Approximate value of pi is "<<total<<endl;

return 0;

}

Explanation:

  • Initialize all the necessary variables.
  • Run a while loop until the following condition is met.

fabs(total - old) > 0.00005

  • Inside the while loop calculate the total value.
  • Lastly, display the approximate value of pi.
3 0
4 years ago
Ternary operators of computer<br><br>please explain. ​
Nitella [24]

Answer:

It's a compact way of doing an if-else statement.

General Format is

<<em>condition</em>> ? <if condition is true> : <else>;

Example:

I could rewrite:

  if(a==1) temp = 1;

  else     temp = 999;

as

  temp = (a==1) ? 1 : 999;

5 0
3 years ago
Did the first generation of computers use microprocessors.
Katena32 [7]

no they used standard 8088 Intel processors

hope this helps

8 0
2 years ago
Read 2 more answers
A (blank) is a special row in an Excel table that provides a selection of
Colt1911 [192]

A Data series is a special row in an Excel table that provides a selection of  aggregate functions useful for working with numerical data.

Data series

<u>Explanation:</u>

As MS-excel worksheet is used to huge or series of calculation. Through MS-excel people use for calculation and do series of analysis and do graph output.

Even in software development reports are generated and export to MS-excel and further analysis, calculation are made.

MS-excel is wonderful tools is used in computer technology. in MS-excel has many inbuilt function where can be used with single cell or range of cells.

In MS-excel aggregate function such as sum, count, max or min is inbuilt function readily available to user it.

3 0
3 years ago
Initialize the list short_names with strings 'Gus', 'Bob', and 'Zoe'. Sample output for the givenprogram:Gus Bob Zoeshort_names
Gnesinka [82]

Answer:

short_names = ['Gus', 'Bob','Zoe']

Explanation:

A list is a type of data structure in python that allows us to store variables  of different types. Each item in a list has an index value which must be a integer value, and the items can be assessed by stating the index position. The syntax for creating and initializing a list is:

list_name = [item1, item2,item3]

  1. The name of the list (must follow variable naming rules)
  2. a pair of square brackets
  3. items in the list separated by commas.

The python code below shows the implementation of the solution of the problem in the question:

<em>short_names = ['Gus', 'Bob','Zoe']</em>

<em>print(short_names[0])</em>

<em>print(short_names[1])</em>

<em>print(short_names[2])</em>

The output is:

<em>Gus</em>

<em>Bob</em>

<em>Zoe</em>

6 0
3 years ago
Other questions:
  • You are given two variables, already declared and assigned values, one of type double, named price, containing the price of an o
    7·1 answer
  • A(n) ____ occurs when a situation results in service disruptions for weeks or months, requiring a government to declare a state
    6·1 answer
  • Is the very calculation that we wish to avoid. Obtain a second equation by multiplying both sides of this equation by 1.06, then
    5·1 answer
  • Consider the following code segment. The code is intended to read nonnegative numbers and compute their product until a negative
    11·1 answer
  • What is ‘Software Quality Assurance’?
    10·1 answer
  • Briefly tell me what a PUT request does
    11·1 answer
  • Read the integer numbers in the text file "1000 Random Number from 0 to 100.txt" into a list
    6·1 answer
  • Do you humans know what math is?
    9·1 answer
  • Describe how computer are used in ticket counter?​
    10·1 answer
  • What is denial service attack?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!