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
dezoksy [38]
3 years ago
11

Sptr is a pointer pointing to the beginning of an array called sarray. To access the value in sarray[3] by using the pointer, yo

u would use:a) *sptr[*3] b) *sptr+3 c) sptr +3 d) *(sptr + 3)
Computers and Technology
1 answer:
kupik [55]3 years ago
4 0

Answer:

The correct option for accessing the value in sarray[3] is : d) *(sptr+3)

Explanation:

a) *sptr[*3]  is wrong option because its syntax is not right it will give errors.

b) *sptr+3 is also wrong option because it will add 3 to the value of sarray[0].

c) sptr+3 is wrong option because it will only access the address of sarray[3] not the value it contains.

d) *(sptr +3) is correct syntax for accessing value in sarray[3] by using pointer

You might be interested in
What do character formats do for your document's message? A. Set how text aligns within a document B. Provide organization C. Pr
Phoenix [80]
<span>What do character formats do for your document's message? A. Set how text aligns within a document</span>
6 0
3 years ago
Read 2 more answers
How do you site this page??
pickupchik [31]
You take the URL of this page and give credit to this page under the "worked Cited" section in your homework page.
3 0
4 years ago
The RAND() function in Excel returns a pseudo-random number between 0 and 1. If you enter this function into 1000 cells (i.e. en
Neko [114]

Answer:

To get this, filter the column with the condition "less than or equal 0.1" and check the number of returned rows at the bottom of the worksheet ( mine is 87 rows from 1000).

Explanation:

The RAND() function in Microsoft Excel is used to generate random numbers between zero and one. It can also be used to generate a range of numbers with decimal places by multiplying the stop number with the rand function  

4 0
3 years ago
What is a feature of Print Preview?
Snezhnost [94]
Fit to page i believe
6 0
3 years ago
Please help asap! i’ll give brainliest to the right answer
Lemur [1.5K]

Answer:

import turtle

my_turtle = turtle.Turtle()

my_turtle.speed(0)

my_turtle.pendown()

colours = ["yellow", "blue", "red", "orange", "cyan", "pink", "green", "brown"]

for sides in range(8):

   my_turtle.pencolor(colours[sides])

   my_turtle.forward(100)

   my_turtle.left(45)

Explanation:

  • The pencolor statement must be inserted before the forward() call otherwise you have no control over the color of the first line.
  • You don't need the count variable, since the 'sides' variable is a perfect counter to index the colours array.
8 0
3 years ago
Other questions:
  • Develop an sec (single error correction) code for a 16-bit data word. generate the code for the data word 0101000000111001. show
    6·2 answers
  • State three differences between a hard drive and a pen drive​
    6·1 answer
  • Which line of code will print Python is cool! on the screen?
    9·2 answers
  • Computer programs and games are called what?
    13·1 answer
  • Which statement about comments is false? Select one: a. Lengthy comments can cause poor execution-time performance. b. Comments
    7·1 answer
  • You can remove selected text from a slide by pressing ctrl+x keyboard shortcut keys true or false
    7·1 answer
  • What is ‘Software Quality Assurance’?
    10·1 answer
  • Major characteristics of the bus in computer architecture​
    8·1 answer
  • Melissa is working on her Cell class by adding new methods. However, in her most recent version, she is receiving errors in some
    14·1 answer
  • Nobody mind this plz
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!