answersLogoWhite

0


Best Answer

Pseudo code is a way of communicating the structure of an algorithm or program without worrying about particular details of the implementation. Good pseudo code gives the reader all the information he or she needs to actually implement the algorithm, while saving the writer from dealing with any weird particularities of any one language.

For example:

Lets write a function which search a list for a value in pseudo code:

recursiveSearch(List l, Value v):

for each value in l:

if value v){

return l[i];

}

}

}

Hopefully its clear that the pseudo code version is easier to parse while reading (except maybe for some C gurus out there) and can be easily translated into any programming language, while the second is more obscure.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the function of pseudo code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why is pseudo code called false code?

Pseudo code cannot be processed by a machine, it is solely intended for processing by humans.


How does pseudo code operate?

It doesn't. Pseudo code isn't a programming language, it is just there to give an idea of how you could write a program.


What is the basic Difference between flow chart and pseudo-code?

what's the difference between flow chart and structure diagrams and pseudo code


Is there an absolute 'right' and 'wrong' way of writing pseudo code?

No. There is no "right way" and "wrong way" of writing pseudo code, let alone qualifying with "absolute". However, a pseudo code is "wrong" if it cannot be understood, or it is incorrect in semantic (what the code tries to describe, solve, etc)


What are the pseudocode keywords for loop?

Pseudo code does not have key words, you make it up, that's why it is pseudo.


What is pseudo code algorithm for create a linked list with a header and insert a four numbers to the list?

pseudo code algorithm to create a linked list


How can i write pseudo code for C plus plus if i haven't even wrote the program yet?

You are going about this backwards. First, define the program. Second, describe its algorithm. Third, if needed, write pseudo code. (Sometime, algorithm and pseudo code is the same process.) Fourth, or third, write real code.


What is the difference of source code object code and pseudo code?

Source code is a sequence of executable instructions written in a particular language. Pseudo code is a sequence of non-executable instructions. It is also called algorithm written in plain English


What is the pseudo code of radix sort in java?

:-P


Icd 9 code for pseudo aneurysm?

442.9


What travel agency has pseudo city code ky51v?

Pseudo city codes are 3 or 4 charachters long


What is pseudo code in c?

Writing in pseudo code means writing in a natural language, not in any specific programming language, so there is no thing as "pseudo-code used in C" as opposed to "pseudo-code used in Java".When you write in pseudo-code, you don't have to follow any specific syntactic rules, just to describe the steps you will use in your algorithm.For example, pseudo-code for bubble sort (taken from wikipedia):procedure bubbleSort( A : list of sortable items ) do swapped = false for each i in 1 tolength(A) - 1 inclusive do: if A[i-1] > A[i] then swap( A[i-1], A[i] ) swapped = true end ifend for while swapped end procedureIt is not written in any programming language, but it should be easy to implement this in any language after you understand the idea from the pseudo-code.