If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > array problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-07-08, 07:13
gjayalakxmi gjayalakxmi is offline
Registered User
 
Join Date: Mar 2008
Posts: 2
array problem

please send me a program urgently

1.accept 5 parameters to the program.
2.store these 5 arument values into an array which is being defined as numeric type.
3.sort the numbers in the array in ascending order and print them.
4.sort the numbers in the array in desecending order and print them.

ans) upto 2 point

define args ARRAY[5] of smallint
define i smallint
for i = 1 to 5
let args[i] = arg_val [i]
end for
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On