What are the phases in s/w developed life cycle?
wat is the diff b/w stack & queue...where do we use stack

Answers were Sorted based on User's Feedback



What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do ..

Answer / prakash.m

phases in SDLC

The phases may be diffred for different SDLC models.
some of the SDLC are

waterfall model(all requirements must be collected in the
first phase itself)
spiral model(processing looks like a spiral fashion,the
desired requirements can be added in next level spirals)
incremental model
prototype model

Stack and queue are data structures. stack is referred as
Last In First Out(LIFO), uses a single pointer
queue is First In First Out(FIFO), uses 2 pointers , one
for insertion and another for deletion.

stack is used for all arithmatic operations, eg. polynomial
addition.

Is This Answer Correct ?    1 Yes 1 No

What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do ..

Answer / subha raman

stack follows-LIFO
-used to evaluate postfix/prefix expressions
queue follows-FIFO
-which has normal applications like-priority being given
1st..i.e. first come-first serve basis..

Is This Answer Correct ?    0 Yes 0 No

What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do ..

Answer / rani

Stack follows LIFO. whereas queue follows FIFO.

All local variables and function calls are stored
temporarily in stack during program execution.

It is easy to manipulate stack operation rather than queue.

Is This Answer Correct ?    0 Yes 0 No

What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do ..

Answer / shruti

The phases of SDLC are:
**Communication.
**Requirements gathering
**Analysis
**Implementation
**Testing
**Maintainance


Differance between stack and queue..

Stack follows LIFO structure i.e -> last in first out.
the element which enters last exits first..

Queue follows FIFO structure. i.e -> first in first out.
the element which enters first exits first..


USE OF STACK:
with refrance to C, we use stack wiht the program counter.
i.e when we jump to a function, we store the address to
return to on a stack..

u can understand this in more detail if you study teh
actual flow of program while calling functions.

Is This Answer Correct ?    1 Yes 1 No

What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do ..

Answer / asdf

Use of stack:
1) All local variables get stored in stack.
2) To store the parameters passed to the function
3) To store the return address of the function
4) To Evaluate arithmetic expressions.
5) In recursive programming

Use of Queue:
1)Used to implement OS internals algorithms (example: in
scheduling algorithms)

Is This Answer Correct ?    0 Yes 0 No

What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do ..

Answer / nisha

Stack follows LIFO i.e last in first out.The last element
entered would be removed first while Queue follows FIFO i.e
first in first out.The element that ws entered first would
be removed first.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

How do you initialize function pointers? Give an example?

3 Answers  


what is the format specifier for printing a pointer value?

0 Answers  


second highest number in a given set of numbers

3 Answers   TCS,


Explain why C language is procedural?

0 Answers   GE,


To what value do nonglobal variables default? 1) auto 2) register 3) static

4 Answers  






What are the features of c languages?

0 Answers  


34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?

0 Answers  


what is available in C language but not in C++?

10 Answers   CTS, TCS,


‎How to define structures? · ‎

0 Answers  


What the different types of arrays in c?

0 Answers  


How to implement call back functions ?

3 Answers   HP,


void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..

1 Answers  


Categories