An integer on this system is 4 bytes long

Assignment Help C/C++ Programming
Reference no: EM13161386

Assume the following for the program below. An integer on this system is 4 bytes long. The memory address where the array "a[]" was created begins at location 8000.

a. #include <stdio.h>

b. #define SIZE 5

c. int main(void)

d. {

e. int a[SIZE] = { 22, 44, 8, 16, 42 }

f. int *b = a;

g. printf("%d\n", *b);

h. printf("%d\n", a[2]);

i. printf("%d\n", *(b+1));

j. printf("%d\n", b);

k. b += 3;

l. printf("%d\n", *b);

m. printf("%p\n", b);

n. return 0;

o. }

1. Which line of code creates a pointer?

2. What will line "g" print out?

3. What will line "h" print out?

4. What will line "i" print out?

5. What will line "j" print out?

6. What will line "l" print out?

7. What will line "m" print out?

8. How much memory (in bytes) would have been allocated on this system for array "a[]"?

Can you show me all the detailed steps to solve these problems. thanks!!

 

 

Reference no: EM13161386

Questions Cloud

What will be the concentrations of nitrogen and oxygen : The equilibrium constant for this reaction is 1.70 x 10^-3. Suppose that 0.860 mol N2 and 0.580 mol O2 are mixed in a 4.00-L reaction vessel. What will be the concentrations of N2, O2, and NO when equilibrium is established?
Why are the inoculations of value : A physician orders Tylenol for a temperature greater than 101 degrees F. The patient's temperature is 100.4 F. Explain the rationale for not medicating a fever of 100.4 F. Why do schools require inoculations for childhood diseases such as mumps, m..
State the exothermic chemical reaction : The exothermic chemical reaction CO(g) + H2O(g) CO2(g) + H2(g) has Kc = 0.034 at 25°C. We currently have a flask containing all the components listed in this equation at equilibrium at 25°C. Subsequently, we will either (1) add some H2 to the flas..
What is likely to be the man problem : A 36-year-old man enters the hospital in an extremely debilitated condition. He has purple-brown skin lesions (a symptom of Kaposi's sarcoma) and a persistent cough.
An integer on this system is 4 bytes long : Assume the following for the program below. An integer on this system is 4 bytes long. The memory address where the array "a[]" was created begins at location 8000. a. #include
Write a program that allows a user to enter a line of text : Write a graphical user interface class called SentenceCounterGUI. It should be able to manipulate the sentence of words
State oleum or fuming sulfuric acid availble commerically : Oleum or fuming sulfuric acid availble commerically in concentrations ranging from 20 to 99% sulfur trioxide. 1. What is the percentage by mass of sulfer trioxide (SO3)
Calculate the effective population size of bullfrogs : In a fictional population of bullfrogs in a lake, there are 300 mature females and 300 mature males. However, only 50 of those males hold territories (and thus, are reproductive) and a further 20 of those males employ the sneaker tactic (and thus,..
What effect does cholera toxin have on a signaling pathway : Without describing specific intracellular signaling molecules, what effect does cholera toxin have on a signaling pathway?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Program to translates letter grade into number grade

In C++ (should be able to compile in Visual Studio 2010): Write a program to translates letter grade into number grade. Letter grades are A,B,C,D and F, possibly followed by a + or -.

  Main function to input twenty integers in given range

Write a main function to input 20 integers in range of 1-6, function should count number of times the numbers 2 and 5 occur. function must declare statics variables count2 and count5.

  Determine the meaof the numbers in the array

Determine the mean(average) of the numbers in the array, and output the reslt. Use a subprogram to input the numbers, a function to find the mean.

  Program to store lists of names and ages in parallel arrays

Write a C++ program that stores lists of names (the last name first) and ages in parallel arrays and sorts the names into alphabetical order keeping the ages with the correct names.

  The process function will then need

The process function will then need to find the time the person waited by calling the time function and finding the difference between the start and end timestamps. Save this time to an accumulator so that in the end you can find the average wait tim..

  State private portion of class to model the item

In c++ state the private portion of a class to model the given item: a class Date for dates consisting of a month, day and year. a class PhoneNumber for a telephone numbers consisting of area code, local exchange, and number.

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Perform operations on arrays

Perform operations on arrays execute tests and repetitions

  Define a structure to store marks of a student

Define a structure to store roll no, name and marks of a student - using the structure of Q2. a), above write a 'C' program to create a file "student.dat". There must be one record for every student in the file.

  Write a driver program called testrationalnumber.cpp

Write a driver program called testRationalNumber.cpp to test each of the above functions and overloaded operators in the RationalNumber class.

  Program to compute surface area of sphere using function

Write down a program in C++ to compute surface area of sphere using a function. As sample run, write down the surface areas of spheres with radii.

  Program to compute diameter in centimeters of a steel rod

Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and a copper rod, which can withstand a particular compression load.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd