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
Katyanochek1 [597]
3 years ago
13

Differences between unions and structures

Computers and Technology
1 answer:
vovikov84 [41]3 years ago
3 0

Answer:

A structure is a user-defined data type available in C that allows to combining data items of different kinds. Structures are used to represent a record. A union is a special data type available in C that allows storing different data types in the same memory location.

You might be interested in
To recover a deleted document, what would you choose in the info window?
Natasha2012 [34]
"Restore", or in Spanish, "Restaurar".
7 0
4 years ago
Hi guys question true or false
cestrela7 [59]

Answer:

FALSE.

Explanation:

You may not use copyright material, even if you print or download it.

The only exception is if you have permission.

3 0
3 years ago
Which of the following operating systems is able to join a domain a) Microsoft office pro b) Microsoft surface R.T. c) google an
Sergeeva-Olga [200]

Answer: c) google android

The question is about operating systems

a) is a software

b) is a device

c) operating system

d) is a device

5 0
4 years ago
Read 2 more answers
Imagine the user types in a complete sentence, but we want to read only the first word and place it in the String variable word.
Vladimir [108]

Answer:

import java.util.Scanner;

public class FirstWord {

   public static void main(String[] args) {

       //NOW YOU WANT TO COLLECT INPUTS FROM THE STUDENT OR USER

       //IMPORT THE SCANNER CLASS FIRST  outside your class

       // THEN YOU CREATE AN OBJECT OF THE SCANNER CLASS

       Scanner input = new Scanner(System.in);

       

       //CREATE A VARIABLE TO HOLD THE USER INPUT

       String text = input.nextLine();

       

       //The variable holder will be used to store characters from the for loop

       String holder="";

       

       //Create a for loop that loops through the user's input

       for(int i=0; i<text.length(); i++){

           //As the loop increases, we get the character in the user's input and store them one by one in the variable holder

           holder+=text.charAt(i);

           if(text.charAt(i)==' '){

               //If the loop encounters a space, it means a complete word has been gotten from the user's input

               //Then the break below Breaks the loop, and the loop stops running

               break;

           }

       }

       System.out.println(holder);

}

Explanation:

text.length() returns the length of the sequence of characters present in length

text.charAt(a number) Returns the char value at the specified index. An index ranges from 0 to length() - 1. The first char value of the sequence is at index 0, the next at index 1, and so on, as for array indexing.

Create a for loop

How does a for loop work?

It collects a starting point, an end point and an increment respectively....all these are passed in as arguments into the for loop

For example, the code above starts from 0, calculates the number of characters in the user's input and sets it as the end point, the loop runs from zero to the length of the text of the user...

Note: i++ in the loop is the increment, it means the loop increases by 1

8 0
4 years ago
While your hands are on home row, your right hand rests lightly on _____.
ollegr [7]

Answer:

jkl;

Explanation:

6 0
4 years ago
Other questions:
  • Why dose this keep popping up will give brainlest for first person answer
    12·1 answer
  • Provide the definition for each of the following structures and unions:
    8·1 answer
  • Raul converts numbers in base 10 to base 2. Which answer best defends why Raul would need to do this?
    12·1 answer
  • Which of the following inputs help robotic vacuum cleaners maneuver around obstacles?
    13·2 answers
  • When you see a/an _______ pointer, this means you can drag the row or column border to change height or width.
    12·2 answers
  • Write a MATLAB script that prompts the user to input the following array by providing an example in the prompt: [2 4;6 3;5 9]. C
    15·1 answer
  • You have a large text file of people. Each person is represented by one line in the text file. The line starts with their ID num
    5·1 answer
  • Your program is going to compare the scores of two volleyball teams that play each other. To win a match in volleyball, a team m
    14·1 answer
  • ¿Cuál es la función que cumplía los sofistas y Porque eran tan importantes?​
    13·1 answer
  • SHORT ANSWERS:
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!