Can someone please show me how to declare an array of 20 integers in pseudocode?

Recommended Answers

Pseudocode has no standard definition, just make something up. It could be as free form as:

declare an array of 20 integers

Or more rigid like an actual programming language:

 declare array(20) of integer
Jump to Post

All 4 Replies

Pseudocode has no standard definition, just make something up. It could be as free form as:

declare an array of 20 integers

Or more rigid like an actual programming language:

 declare array(20) of integer

Thank you very much for the reply, I'm still trying to learn pseudocode. I was self taught in VBA (Excel) and now I'm having trouble trying to grasp pseudocode.

If I wanted to add a FOR loop to load the array with 20 integers would that be just as simple as? I'm not sure how a FOR loop should look either?

I'm having trouble trying to grasp pseudocode.

It makes more sense when you realize that pseudocode has no rules. It's not going to be executed, so there's no compiler to satisfy. Just write something that makes sense to you and is consistent.

ok, thanks again for all the help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.