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
Debora [2.8K]
3 years ago
8

write a c program to insert and delete values from stack( to perform pop and push operations) using an array data structure

Computers and Technology
1 answer:
Alexxx [7]3 years ago
3 0

Answer:

<u>How to implement a stack in C using an array?</u>

A stack is a linear data structure that follows the Last in, First out principle (i.e. the last added elements are removed first).

This abstract data type​ can be implemented in C in multiple ways. One such way is by using an array.

​Pro of using an array:

No extra memory required to store the pointers.

Con of using an array:

The size of the stack is pre-set so it cannot increase or decrease.

You might be interested in
Steps to log out of an email account ​
Alexxx [7]

Explanation:

Hey there!

While logging out an email remember follwing steps;

  • Go to email and choose account to be removed.
  • Click on manage accounts.
  • Your email will be there, click on it.
  • Then click remove account.

[ You can also go to setting and click on account and then choose google account and click on it and remove it.]

This probably means removing account only but not logging out but works lije that only and when you need it you can again open it, like logging out and logging in.

<em><u>Hope</u></em><em><u> </u></em><em><u>it helps</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em>

4 0
3 years ago
Read 2 more answers
An indention where the first line of text is indented and the second and succeeding lines start at the left margin is called ___
iren [92.7K]

Answer:

first-line indent

Explanation:

The answer is -- first-line indent

The "first-line indent" is a guideline provided by the APA or American Psychological Association for formatting or writing a reference page.

When we start writing text in a page, the first line on our page will line up from the left margin of the page and each line after that is the second and the succeeding lines will also start lining up at the left margin of the page when first line intend is turned on. This is called first-line indent.

Thus the answer is  first-line indent

4 0
3 years ago
Which organization publishes a handbook that describes various occupations? U.S. Department of Defense U.S. Department of Agricu
prohojiy [21]

Answer:

U.S. Bureau of Labor Statistics.

Explanation:

The Bureau of Labor Statistics is a unit of the United States Department of Labor assigned with the task of fact-finding in the field of labor and statistics for the government. The agency helps measure the labor activity in the market and evaluates all forms of activity regarding labor conditions for the government.

This agency also functions or serves as the principal agency for the United States Federal Statistical System. It not only collects information or data but also helps spread the said information to the government. It also published a biennial handbook describing various occupations.

3 0
3 years ago
Web services can exchange information between two different systems only if the operating systems and programming languages upon
stich3 [128]
Because if im talking to someone in english but they are from china and communicating to me in chinese then thas what itll do
4 0
3 years ago
Write a program that produces this output:
AveGali [126]

Answer:

void printC()  

{  

   int i, j;  

   for (i = 0; i < 4; i++) //i indicate row number. Here we have 5 rows

       {  

         printf("C"); //print C for every row  

         for (j = 0; j < 6; j++) //j indicate column number. Here we have 7 Rows

         {  

           if (i == 0 || i == 4) //For first and last row  

               printf("C"); //print 'CCCCCCC'

          else if (i = 1|| i= 3) //for Second forth row  

                printf("C        +      +"); //print 'C    +    +'

          else if (i = 2) For second row  

                printf("C       +++++"); //print 'C +++++'

           else

               continue; //to jump to next iteration

         }  

         printf("\n"); // print in next line

}  

}

4 0
3 years ago
Other questions:
  • What is the difference between HTML and CSS? * 1. CSS is a markup language unlike HTML 2. HTML is a backend technology and CSS i
    7·1 answer
  • Yahoo! allows users to create personalized my yahoo! pages. users can add or delete a variety of information from their personal
    8·2 answers
  • How do i unblock website on my school computer
    7·2 answers
  • Software referd to the physical parts of the computer True or False
    9·2 answers
  • The establishment called ABC Enterprise requires a Java program to keep a database of the inventory of the products that it sell
    8·1 answer
  • What areas do you need to grow your knowledge in to understand your financial future?
    12·1 answer
  • A local variable that is declared as ____ causes the program to keep the variable and its latest value even when the function th
    10·1 answer
  • Which programming paradigm does the programming language JavaScript follow?
    14·1 answer
  • A brick has a weight of 23N. The brick is flat and smooth on the side in contact with the floor having measurements ( height= 5c
    13·1 answer
  • Explain the correct ways of using keyboard. .​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!