Question

Please explain why these are overflows. Also I do not understand how they got these numbers please show on paper how with good detail I am confused on these

1. int i; 2. unsigned int j; 3. ? = INT MAX ; // 2 , 147 , 483 , 647 5. printf(i - Sd\n, i); i--2,147,483,648 6. j- UINT MAX; // 4,294,967,295; 0

0 0
Add a comment Improve this question Transcribed image text
Answer #1
1. int i; 2. unsiqned int Here i is a variable of type signed integer, signed integer can hold both positive and negative v
void getComment (unsigned int len, char *src) i unsiqned int size; The variable len contains 1 as passed from below functio
Add a comment
Know the answer?
Add Answer to:
Please explain why these are overflows. Also I do not understand how they got these numbers...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I don’t understand how they got the answer can someone please do it in detail so...

    I don’t understand how they got the answer can someone please do it in detail so I can understand CHw01 Exercise 1.48 Part A Giv vectors A-400i +7.00, and E-5.00-2.00, firndthevetorproduct AxB Express your answer in terms of the unit vectors i, j, and k. Use the 'unlt vector button to denote unit vectors in your answer. en two

  • I need help with this assignment. My answers are in bold but I am not getting...

    I need help with this assignment. My answers are in bold but I am not getting the correct output which is also below. Can you please take a look at it. #include   <stdlib.h> #include   <stdio.h> #include   <float.h> #include   <math.h> // PURPOSE: To define a nickname for type 'unsigned int'. typedef   unsigned int           uInt; //--          Sign related constants           --// // PURPOSE: To tell how many bits to shift the sign field from the //   least...

  • please explain fully. also I am confused why there are numbers in with E and Z...

    please explain fully. also I am confused why there are numbers in with E and Z (2.) Draw structures corresponding to the following names: a) (4E)-2,4-dimehyl-1,4-hexadiene b) Cis-3,3-dimethyl-4-propyl-1,5-octadiene c) 4-methyl-1,2-pentadiene d) (3E,5Z)-2,6-dimethyl-1,3,5,7-octatetraene e) 3-butyl-2-heptene f) Trans-2,2,5,5-tetramethyl-3-hexene

  • Please explain how they arrived at these numbers. I don't understand what to do when there...

    Please explain how they arrived at these numbers. I don't understand what to do when there is a cap or a limit on something. I don't understand which ones have caps and how to apply those to the problem. I understand what to do once the numbers are in this table. I just don't understand how to arrive at all these numbers. Also explain 2 ways to settle a capital deficiency please. The SAD partnership is to be liquidated. The...

  • Can someone explain me parts of this code I do not fully understand what its doing...

    Can someone explain me parts of this code I do not fully understand what its doing or what its purpose is. I have highlighted the parts I'm confused over. Please explain thoroughly. import java.util.Scanner; class A1Stats { public static void main(String args[]) { double min, max, sum, mean; int n; Scanner scanner = new Scanner(System.in); String input = scanner.nextLine(); String[] numbers = input.split(" "); double value[] = new double[numbers.length]; if(numbers.length > 0){ for (int i = 0; i < numbers.length;...

  • Please detail how to do at least one step-by-step, I do not understand how to do...

    Please detail how to do at least one step-by-step, I do not understand how to do it. 4. (10 points) Convert these 32-bit, single-precision values into decimal numbers: a. Ox3fc00000 b. 0x807345ff C. Ox7f350000 d. Oxffffffff e. 0x20000000 f. 0x7f800000 g. Oxff800ffe h. 0x42c80000 i. Ox4d800000 j. 0x80000000

  • Please help in C: with the following code, i am getting a random 127 printed in...

    Please help in C: with the following code, i am getting a random 127 printed in front of my reverse display of the array. The file i am pulling (data.txt) is: 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 when the reverse prints, it prints: 127 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 not sure why...please...

  • Can you please explain how they got the answer for each question, I dont understand how...

    Can you please explain how they got the answer for each question, I dont understand how to do them. Please explain it in great depth since I am a beiginner in Organic Chemistry. 77. Predict the product(s) for the following reaction. H3 H3 H3C H3C A) I B) II C) III D) IV E) none of these Ans: B 84. Predict the product(s) for the following reaction. 1.CH ONa 2 H2O OCH3 CH IV A) I B) II C) III...

  • HOW DOES THE CODE WORK AND PLEASE TELL ME WHERE DID THE NUMBER [J] COME FROM...

    HOW DOES THE CODE WORK AND PLEASE TELL ME WHERE DID THE NUMBER [J] COME FROM WHEN IT HASN'T BEEN DECLARED IN THE ABOVE STATEMENT MOREOVER KINDLY ALSO DRY RUN THE PROGRAM TO MAKE IT MUCH EASIER TO UNDERSTAND int main() { int i, j, a, n, number[i]; printf("Enter the value of N \n"); scanf("%d", &n); printf("Enter the numbers \n"); for (i = 0; i < n; i++) scanf("%d", &number[i]); for (i = 0; i < n; ++i) { for...

  • please help please explain how you got the answer. I dont understand the 1/2 part of...

    please help please explain how you got the answer. I dont understand the 1/2 part of it and how it goes along with the rest of the information. Review | Constants Periodic Table Which of the following set of quantum numbers (ordered n, l, m, m.) are possible for an electron in an atom? Check all that apply. ► View Available Hint(s) B-4.3, 1, 112 2.4.1. -1/2 23, 2, 2, -1/2 5.3.0.12 B 2, 1,0 5,3,4, 1/2 0 3.2.-3, 112...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT