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
As part of its commitment to sustainability, a company is looking for a way to track the source of purchased goods and how they
luda_lava [24]

The primary technology that would enable the company to achieve this goal is Blockchain technology

  • Blockchain is commonly defined as an enclosed, encrypted, distributed database that is distributee in a wide range of multiple computers or nodes that are part of a community or system.

  • It is an exciting technologies as it helps to limit the incidence of security breaches by even its own users.

  • With Blockchain, a company can be able to guard against thefts of their products and also monitor them.

From the above we can therefore say that the answer to The primary technology that would enable the company to achieve this goal is Blockchain technology is correct

Learn more from:

brainly.com/question/24875333

6 0
3 years ago
Read 2 more answers
The older computer had a CPU that ran at 266MHz compared to a current CPU that runs 3.7GHz. How many times faster is the new CPU
sergij07 [2.7K]

Answer:

Number of times new computer faster than old computer = 13.90 times (Approx)

Explanation:

Given:

Clock speed of old computer = 266 MHz

Clock speed of new computer = 3.7 GHz

266MHz = 0.266GHz

Find:

Number of times new computer faster than old computer

Computation:

Number of times new computer faster than old computer = Clock speed of new computer / Clock speed of old computer

Number of times new computer faster than old computer = 3.7 / 266

Number of times new computer faster than old computer = 3.7 / 0.266

Number of times new computer faster than old computer = 13.90 times (Approx)

3 0
3 years ago
Shouldn't I be virtuoso? I keep refreshing and opening and closing tabs but it still hasn't updated
spin [16.1K]

Answer:

You are currently showing as a Virtuoso on your profile. Try clearing your cookies and logging back in.

5 0
2 years ago
You use buttons and commands on the ribbon to tell word what you want to do. true or false
GarryVolchara [31]
Yes, that is true. The buttons and commands are used for their specific actions on the computer.
7 0
4 years ago
When an employee is told that his job will be outsourced within a year, he knows that his job will become unnecessary
Anvisha [2.4K]
False!! Hope this helps
8 0
3 years ago
Other questions:
  • 1. Which of the following are considered CAD powerhouses?
    6·1 answer
  • A(n) ______ is a laptop computer that can convert into a tablet-like device.
    13·1 answer
  • Help 30 points I will mark brainliest!!!!!!!!!!!
    10·1 answer
  • What’s a sign you should talk to an adult about your online time
    14·2 answers
  • A stigma is
    8·2 answers
  • If I want to have an estimate of the number of people who visited my website, which metric should I use?
    5·2 answers
  • Como funciona la televisión
    7·1 answer
  • I have 2 questions How do i send a picture for someone to answer the hw?
    6·2 answers
  • What techniques can be used to assess a product?
    12·2 answers
  • Janice’s grandmother stayed at home and took care of her family while her grandfather worked. Today Janice lives on her own and
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!