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
Harlamova29_29 [7]
3 years ago
9

A structure, in C, has been given by: struct MYSTRUCT { char buf[15] shorts S int i; } * Select the proper keywords in the prope

r order) needed to declare, in C, an array of 8 structures (called MYSTR) of type MYSTRUCT. * Choose the following the expression for accessing Element 4 (i.e., index 4) of the char array (BUF) in the third element (i.e., index 3) of MYSTR. * Choose the statement to declare, in C, a pointer called MYSPTR that points to a structure of type MYSTRUCT. * Select the proper method to access the short, S, in a structure pointed to by MYSPTR by de-referencing the pointer.*Select the proper method to access the short, S, in a structure pointed to by MYSPTR by using the shorthand notation.
Computers and Technology
1 answer:
vodka [1.7K]3 years ago
7 0

Answer:

MYSTRUCT myStruct[8]; // statemnt to create an array of struct variables

myStruct[3].buf[4] // statement to access the fourth element of the array of the struct variables.

struct * MYSPTR = &myStruct; // This statement creates a pointer.

To dereference and access the S variable of the struct data structure in the array;

(*MYSPTR).S and its shorthand notation MYSPTR -> S

Explanation:

A structure is a data structure in C language that is used to hold descriptive data of an object. The keyword struct is used to create the structure. An array of struct holds instances of a struct variable, where each struct can be accessed using the regular array indexing and the variables of the structs in the array can be accessed using dot notation.

You might be interested in
Now that you have explored some of the possibilities for using Excel at home, what concerns or questions do you have about using
lora16 [44]

This seems like an opinionated question, I suggest attempting to answer it yourself.

8 0
3 years ago
What is the top anime shows? <3
LenKa [72]

Answer:

This is personally based on my opinion.

My top 10 favorites

Toradora

Darling in the franxx

Lucky Star

My Melody

Death note

Attack on titans

One piece

The Promise neverland

Kaguya-sama: love is war

Black cover

4 0
2 years ago
Read 2 more answers
What are the advantages of non verbal communication in an organization
Ilya [14]

Answer:

It can act as a substitute of verbal messages

It has instant effect as the receivers perceive them quickly

Its an aid to verbal communication too.

Explanation:

I hope this helps

4 0
2 years ago
If the floating-point number representation on a certain system has a sign bit, a 3-bit exponent, and a 4-bit significand. What
vekshin1

Answer:

Normalization of storage is a typical method of storing the floating point number by shifting the decimal after the first figure of the number such as 1101.101 is normalized to 1.101101x23.

If the number that is in hovering point representation has 1 sign bit, 3-bit exponent with a 4-bit significant:

whenever the storage is normalized, then the biggest positive floating spot number in 2`s and the complement notation is 0.11112 x 23 = 111.12 =7.5

If the storage is returned to normal, then the minimum positive floating point number is 0.12 x 2-4 =0.000012 =1/32 = 0.03125.

Explanation:

Whenever the floating figure is keyed into the computer memory, then the first bit will be the sign bit, the next 8 bits are for exponent and 23 bits are used for storing significand. The array of exponents is from -127 to 128. While Exponent 127 stands for 0 and positive figures can be represented by values bigger than 127. The biggest floating point number will be represented as 0.111111.... 1111x 211111111

7 0
3 years ago
true false the if statement causes one or more statements to execute only when a boolean expression is true
poizon [28]

Answer:

True

Explanation:

I am a coder myself and I say this is true because it executes it if the listed statement or variable is true. This is also the same for the while loop.

8 0
3 years ago
Other questions:
  • Your assignment is to write an assembly language program which read a string and print it in uppercase. This program asks the us
    15·1 answer
  • I am trying to write a c++ program like the game typeracer. When the player starts the program he will be asked to write a sente
    5·1 answer
  • Circular errors are caused by adding the cell name of a/an _______ cell to a formula.
    11·2 answers
  • Write a java program that would request user name, id number, and state the time the user has reported at work.​
    12·1 answer
  • CLS <br> N = 1<br> FOR J = 1 TO 5 <br> PRINT N<br> N = 10*N+1 <br> NEXT J<br> END
    14·1 answer
  • Choose the correct term to complete the sentence.
    12·1 answer
  • What is the effect of flattening layers in image editing?
    14·2 answers
  • The tag that describes the content of the web page is ________________
    5·1 answer
  • In your own words, explain the FNAF timeline
    15·1 answer
  • Types of Computer games​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!