MadSci Network: Computer Science

Subject: What does the statement ALLOCATE means in FORTRAN language?

Date: Wed Mar 15 12:30:46 2000
Posted by vicknes
Grade level: undergrad School: National University of Malaysia
City: Bangi State/Province: Selangor Country: Malaysia
Area of science: Computer Science
ID: 953145046.Cs

Recently I've came across the statement - ALLOCATE & ALLOCATABLE in one of 
the programs in the FORTRAN programming language. I've tried to look for 
the function of these statement in FORTRAN books to no avail. Example of 
these statements are given below:-
      integer x[ALLOCATABLE](:) 
      ALLOCATE (x (1,z), STAT = ierror)
1) What is the meaning of ALLOCATE and ALLOCATABLE?
2) What is the function of these statements?
3) What are the significance of these function in a program?
4) What is the similar statement in C++ for these function?

I'm new to fortran programming language. So it would be very helpful if an 
example is given. 

Your help is help is very much appreciated.
Thank you.   

Re: What does the statement ALLOCATE means in FORTRAN language?

Current Queue | Current Queue for Computer Science | Computer Science archives

Try the links in the MadSci Library for more information on Computer Science.

MadSci Home | Information | Search | Random Knowledge Generator | MadSci Archives | Mad Library | MAD Labs | MAD FAQs | Ask a ? | Join Us! | Help Support MadSci

MadSci Network,
© 1995-2000. All rights reserved.