Question

c++ language material Choose the correct answer please 1-When allocate memory with size 64 byte :...

c++ language material
Choose the correct answer please

1-When allocate memory with size 64 byte :

Int *m=new int [31];

Float *m=new float[8];

Double *m=new double[8];

Long *m=new long[16]


2-When print the address of the fifth character in pointer n on the screen :

Printf("%p", n[4]);

Printf("%p", n+5);

Printf("%p",&n[4]);

Printf("%p",n[5]);


3-to see the moving of a circle (circle(x,y,10)) from left top corner to right lower corner on the screen we need to ___________________

increase x and decrease y

increase x and increase y after every 0.0001 ms

increase x and decrease y after every 100 ms

increase x and increase y after every 100 ms


4-arc(0,0,90,270,40); draw seen half circle

False

True

Homework Answers

Answer #1

For the given options, the best suits are as follows:

Double uses 8 bytes of data so 8*8 = 64 bytes

And '&' denotes address of certain data.

As moving on the screen x has to be increased and y has to be decreased as per the requirement.

And the arc function depicts the previous diagram.

Know the answer?
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
Similar Questions
Microprocessor 8086 material. Choose the correct answer. 1- For a (64K x 8) RAM, the number...
Microprocessor 8086 material. Choose the correct answer. 1- For a (64K x 8) RAM, the number of address lines is: * 17 19 16 15 20 14 18 2-Which of the following instructions requires (BYTE PTR)? * SHR [500H], 3h LDS SI, [1000H] LAHF PUSH [9AAH] ADD AX, [800H] 3-Where are the interrupt vectors located in the microprocessor’s memory? * in the first 64K byte in the first 1K byte in the first 256K byte in the first 1M byte...
Java question, Please answer everything. Thank you Answer the following questions as briefly (but completely) as...
Java question, Please answer everything. Thank you Answer the following questions as briefly (but completely) as possible: What is a checked exception, and what is an unchecked exception? What is NullPointerException? Which of the following statements (if any) will throw an exception? If no exception is thrown, what is the output? 1: System.out.println( 1 / 0 ); 2: System.out.println( 1.0 / 0 ); Point out the problem in the following code. Does the code throw any exceptions? 1: long value...
choose correct answer 1)The difference between manufacturer's desire to produce large quantities of a limited variety...
choose correct answer 1)The difference between manufacturer's desire to produce large quantities of a limited variety of items vs. a customer's desire to demand small quantities of numerous items best describes which of the following?        Discrepancy in space        Discrepancy in quantity and assortment        Discrepancy in time        Discrepancy in logistics 2)Developing long-term relationships with key supply chain participants (e.g., consumers, intermediate customers, and suppliers) can be best described as:        Relationship marketing...
1. Find the area under the standard normal curve (round to four decimal places) a. To...
1. Find the area under the standard normal curve (round to four decimal places) a. To the left of  z=1.65 b. To the right of z = 0.54 c. Between z = -2.05 and z = 1.05 2. Find the z-score that has an area of 0.23 to its right. 3. The average height of a certain group of children is 49 inches with a standard deviation of 3 inches. If the heights are normally distributed, find the probability that a...
Homework Draw class diagrams for your HW4 - the Tetris Game shown below: Part 1: UML...
Homework Draw class diagrams for your HW4 - the Tetris Game shown below: Part 1: UML As a review, Here are some links to some explanations of UML diagrams if you need them. • https://courses.cs.washington.edu/courses/cse403/11sp/lectures/lecture08-uml1.pdf (Links to an external site.) • http://creately.com/blog/diagrams/class-diagram-relationships/ (Links to an external site.) • http://www.cs.bsu.edu/homepages/pvg/misc/uml/ (Links to an external site.) However you ended up creating the UML from HW4, your class diagram probably had some or all of these features: • Class variables: names, types, and...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
1. What is an ISP (Integrated Service Provider) for supply chains? (1 point) A. A consultant...
1. What is an ISP (Integrated Service Provider) for supply chains? (1 point) A. A consultant agency which integrates the supply chain for companies B. A 2 PL or a 3PL, but not a 4PL C. A company supplying transportation and warehousing services D. A logistics service company specialized in suppling VAS (value added services) 2. What characterizes a 4 PL? (1 point) A. They are non-asset based and provides integrated services primarily supplied by asset based providers, for example...
1) Describe an example of each of the following that may be found of your kitchen:...
1) Describe an example of each of the following that may be found of your kitchen: Explain how your choice falls into this category, and if there is a chemical name or symbol for it, provide that as well. Provide a photo of your example with your ID card in it. a) a compound b) a heterogeneous mixture c) an element (symbol) Moving to the Caves… Lechuguilla Caves specifically. Check out this picture of crystals of gypsum left behind in...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT