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
Inessa05 [86]
4 years ago
8

I'm doing C++. When i multiply 200000 by 200000, i get 1345294336. I wrote

Computers and Technology
1 answer:
egoroff_w [7]4 years ago
4 0
Even though your variable x is large enough to hold the answer 40000000000, the constants 200000 are treated as integers, such that the multiplication is first fitted in an integer that is too small.

The solution is to use the 'LL' suffix on the constants, so that the compiler knows to treat them as long longs from the start:

long long x = 200000LL * 200000LL;

The number <span>1345294336 can be explained by ANDing 40000000000 with 0xFFFFFFFF (which is the maximum size of an unsigned long)</span>
You might be interested in
In the lab, wireshark continued to capture data in the background until the:
Alex17521 [72]
In the lab, Wireshark continued to capture data in the background until the capture process was manually stopped later in the lab.
Wireshark is a packet analysis tools, it gets the information for traffic passing through a specific network node.

5 0
3 years ago
A network interface port has collision detection and carrier sensing enabled on a shared twisted-pair network. From this stateme
hram777 [196]

Answer:

This is an Ethernet port operating at half duplex.

Explanation:

Modern Ethernet networks built with switches and full-duplex connections no longer utilize CSMA/CD. CSMA/CD is only used in obsolete shared media Ethernet (which uses repeater or hub).

7 0
3 years ago
Read 2 more answers
The sides of a ladder are called
adoni [48]

I think they are called stringers or rails.

3 0
3 years ago
Read 2 more answers
Suppose that list is sorted using the selection sort algorithm as discussed in the book. What is the resulting list after two pa
MrRissso [65]

Answer:

The answer is "Option C".

Explanation:

In the given question the main list is missing. so, first, we defined the main list after that explain the answer to this question:

The main list:

list={24, 20, 10, 75, 70, 18, 60, 35}

In the above-given choices, option c is correct because in the list, the element 10 and element 18 are fixed in its correct position and element 10 and 24 are positioned in the placed of 18 elements, and the 20 elements will be placed as follows, and the other choices were wrong because in this data is in its wrong place.

4 0
3 years ago
Who are some of the people who use social media and other internet resources to research candidates
bezimeni [28]

Answer:

Digital Citizens

6 0
4 years ago
Other questions:
  • When creating an input/ output table, where do you enter the formula?
    5·1 answer
  • A base class named Garden contains a private field width and a property public int Width that contains get and set accessors. A
    11·1 answer
  • You have informed your users that you need to bring the machine down at the end of the day to perform routine maintenance. Howev
    14·1 answer
  • Given an list of N integers, Insertion Sort will, for each element in the list starting from the second element: Compare the ele
    8·1 answer
  • What's a good app that solves trigonometry problems?
    8·1 answer
  • Why is simplicity important in navigation design?
    13·1 answer
  • Which statement describes one of the responsibilities of a computer programmer?
    14·1 answer
  • The metric unit used for length
    5·1 answer
  • Among your selection in different online interfaces, which are your top three favorites?​
    7·2 answers
  • Simple Java programming
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!