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
postnew [5]
3 years ago
5

Please develop a C program to reverse a series of integer number (read from the user until EOF issued by user) using stack ADT l

ibrary. Please include c code and three sample run demonstrations with at least 10 different numbers each time.
Computers and Technology
1 answer:
EleoNora [17]3 years ago
8 0

Answer:

#include <stdio.h>

#define MAX_CH 256

int main(void) {

int ch, i, length;

char string[MAX_CH];

for (;;) {

for (i = 0; i < MAX_CH; i++) {

if ((ch = getchar()) == EOF || (ch == '\n')) break; string[i] = ch; }

length = i;

if (length == 0) { break; }

for (i = 0; i < length; i++) { putchar(string[length - i - 1]); }

putchar('\n');

}

return 0;

}

Explanation:

  • Take input from user until the end of file.
  • Reverse the string using the following technique:
  • putchar(string[length - i - 1])
You might be interested in
Advantages of purchasing a software package over developing software in-house include all of the following except ____. Group of
sdas [7]

Answer: satisfaction of unique business requirements

Explanation:

The word unique means : being the only one of its kind; unlike anything else. Hence, when a software is developed, it is done to meet a specific purpose which is known to the developer. So this can't be part of the above.

7 0
4 years ago
What is an input periphal
Lorico [155]
Anything that you can you to input actions or data into a computer. For example mice and keyboards are input peripherals because you use them to give the computer input of actions you want it to perform. This includes actions like opening a web browser with a mouse click or typing characters to the screen with a keyboard.

The opposite would be an output peripheral which would be something like the computer screen itself.
4 0
3 years ago
Read 2 more answers
Utility software includes which of the following ? <br> Select all that apply
svet-max [94.6K]

Answer:   Utility programs, commonly referred to as just "utilities," are software programs that add functionality to your computer or help your computer perform better. These include antivirus, backup, disk repair, file management, security, and networking programs.

Explanation:

7 0
3 years ago
Write any two features of Guided media​
BaLLatris [955]

Answer:

<h3>Guided media, which are those that provide a conduit from one device to another, include twisted-pair cable, coaxial cable, and fiber-optic cable. Guided Transmission Media uses a "cabling" system that guides the data signals along a specific path. The data signals are bound by the "cabling" system.</h3>

pa brainliest po thank you

6 0
3 years ago
Write a function named joinStrings() that keeps asking the user for words and joins them together. Each word should start with a
Tamiku [17]

Answer:

* The code is in Python

def joinStrings():

   join = ""

   while True:

       str = input("Enter a word or Q to stop: ")

       if str == "Q":

           break

       else:

           join = join + " " + str

   return join

print(joinStrings())

Explanation:

Create a function called joinStrings

Initialize join variable to hold the strings that will be combined

Create a while loop that stops when user enters "Q". Otherwise, ask the user for a new string and join it to the join variable with a space

When the loop is done, return the join

Call the function and print the result

4 0
3 years ago
Other questions:
  • How can touch typing quickly but accurately improve your earnings (the money you can make)
    15·2 answers
  • You work in the educational software industry. Your boss asks you to give a brief lecture to other employees about the digital d
    7·2 answers
  • Which activity does not allow a person to perform any work while at the shop
    10·1 answer
  • What’s the purpose of balancing or monitoring your checking account?
    12·2 answers
  • HELP PLEASE What is an internal part of a computer which contains all software programs installed on your computer?
    9·2 answers
  • ______________ memory is a small, high-speed, high-cost memory that servers as a buffer for frequently accessed data
    9·2 answers
  • For risk monitoring, what are some techniques or tools you can implement in each of the seven domains of a typical IT infrastruc
    7·1 answer
  • Help ASAP please This is a skills lab simulation for college, it’s on Microsoft word is there a keyboard shortcut or something o
    12·1 answer
  • Select the correct answer.
    11·2 answers
  • What are the most common processes and procedures handled by data warehousing specialists? select all that apply.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!