As MK27 said, there's no real "definition" or "standard" for pseudocode. I like to think of it as "English" with "invalid programming language code" (i.e. code that would probably produce an error, if taken verbatim). I'll try and write a small example of reversing a string.
Code:
char* reverse(char * str, int len)
{
int i;
for ( i := 0; i < len/2; i++)
{
char temp = str[i];
str[i] = str[len - i];
str[len - i] = temp;
}
return str;
}
Code:
algorithm: reverse
input: 'str', string to reverse
output: the reversed string
-----------------------------------
begin
let len := length of str
for i := 1 to len/2
swap characters in str at positions i and (len-i)
end
end
Of course its possible there are logic errors in either segments above, as I have quickly typed it up. If so, do not waste your time telling me, if you do then you are missing the point.
Also, sometimes the actual code is almost identical to the pseudocode (say in a factorial function), and so you can hardly distinguish between them. Of course it is still "valid" pseudocode, though. One key thing I'd like to make is that in pseudocode, if you want to use some "function" that is intuitive enough to understand (i.e. "swap"ping two characters), you just use it without defining it.
Again, keep in mind, there is no real format or standard to follow. You asked for an example, I gave you one.