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
natima [27]
2 years ago
11

Given the following code char a[2][4] = { { 'c', 'a', 'r', 'b' }, { 'i', 'k', 'e', '\0' } }; char *p = &a[0][0]; while (*p !

= '\0') { printf("%c", *p); p++; } what will happen? group of answer choices a compilation error will occur at this line: char *p = &a[0][0]; it prints: carbike it prints: carb a compilation error will occur at this line:
Computers and Technology
1 answer:
adell [148]2 years ago
7 0

Answer:

You'd get a compiling error.

Explanation:

Since this code is presumably written in C++, it doesn't include an "int main()", and without it you'll have a compiling error when you create functions. Since the start of a C++ program is looking for "int main()" and one doesn't exist, the program cannot compile.

Since the only function here is the while statement, then that's what the compiler will scream at you for. If you put all of this code within an "int main()", you'll no longer have a compiling error, and you'll have "carbike" written to the console.

I hope this explanation helps! You're welcome!

You might be interested in
Spencer wants to choose a career path that wouldn’t hold him to an office or laboratory. Which of the following career paths wou
ruslelena [56]
Photography is the best choice but video game designers are also nice
please mark as brainliest
 
5 0
3 years ago
Read 2 more answers
Host B is sending an email intended for the user on Host A to the email server. What protocol is being used to send the message
Lynna [10]

Answer:

I think that part A is correct option

6 0
4 years ago
What is the first phone ever made?
pickupchik [31]

Answer:

the Telephone

Explanation:

Before the invention of electromagnetic telephones, mechanical acoustic devices existed for transmitting speech and music over a greater distance greater than that of normal direct speech. The earliest mechanical telephones were based on sound transmission through pipes or other physical media.The acoustic tin can telephone, or "lovers' phone", has been known for centuries. It connects two diaphragms with a taut string or wire, which transmits sound by mechanical vibrations from one to the other along the wire (and not by a modulated electric current). The classic example is the children's toy made by connecting the bottoms of two paper cups, metal cans, or plastic bottles with tautly held string.Some of the earliest known experiments were conducted by the British physicist and polymath Robert Hooke from 1664 to 1685. An acoustic string phone made in 1667 is attributed to him.For a few years in the late 1800s, acoustic telephones were marketed commercially as a competitor to the electrical telephone. When the Bell telephone patents expired and many new telephone manufacturers began competing, acoustic telephone makers quickly went out of business. Their maximum range was very limited. An example of one such company was the Pulsion Telephone Supply Company created by Lemuel Mellett in Massachusetts, which designed its version in 1888 and deployed it on railroad right-of-ways.Additionally, speaking tubes have long been common, especially within buildings and aboard ships, and they are still in use today. The telephone emerged from the making and successive improvements of the electrical telegraph. In 1804, Spanish polymath and scientist Francisco Salva Campillo constructed an electrochemical telegraph.The first working telegraph was built by the English inventor Francis Ronalds in 1816 and used static electricity. An electromagnetic telegraph was created by Baron Schilling in 1832. Carl Friedrich Gauss and Wilhelm Weber built another electromagnetic telegraph in 1833 in Göttingen.At the University of Gottingen, the two have been working together in the field of magnetism. They built the first telegraph to connect the observatory and the Institute of physics, which was able to send eight words per minute.

3 0
3 years ago
What is the output of the following code? ArrayList list = new ArrayList(); java.util.Date d = new java.util.Date(); list.add(d)
harina [27]

Answer:

true true

Explanation:

The code snippet first declare an arraylist called list. Then, a date object d is created. The object d is added to the arraylist twice.

Then inside the display statement, there are two boolean expressions. They both check if the element in index 0 and index 1 of the arraylist are the same and if they refer to the same object location in the memory.

The object in index 0 and index 1 are the same and they refer to the same object location in the memory hence the output is true true.

8 0
3 years ago
How do information systems help organizations?
dem82 [27]

Answer:

Information systems assist in disseminating information by allowing managers and other organization leaders to store data in folders and documents that can be seamlessly shared with the appropriate employees.

Explanation:

6 0
3 years ago
Other questions:
  • Inputs to a system that can enhance performance is called
    6·2 answers
  • Stores of data that are so vast that conventional database management systems cannot handle them, and very sophisticated analysi
    6·1 answer
  • Write a method named circleArea that accepts the radius of a circle as a parameter (as a real number) and returns the area of a
    12·1 answer
  • Write the following function without using the C++ string class or any functions in the standard library, including strlen(). Yo
    5·1 answer
  • Which type of software is primarily used to organize a collection of information for easy access?
    15·1 answer
  • This is A C++ PROGRAM BTW!! Define a class named Money that stores a monetary amount. The class should have two private integer
    6·1 answer
  • Create detailed pseudocode for a program that calculates how many days are left until Christmas, when given as an input how many
    15·1 answer
  • An email message containing a warning related to a non-existent computer security threat, asking a user to delete system files f
    6·1 answer
  • Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in
    13·1 answer
  • What is the reason for taking care of design a good computer human interface ​
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!