//sorry one more thing,
//in the previous program when i wanted to print the accounts. i had to do this

if(operation == 4)// how to print all existing accounts??

//here i randomly chose account[] to be 1. but is there any standard way to call this function.
// i think my programing style is not good. i should have printed each account individually but using a for loop in the main itself. RIGHT?