[Solved] Output the array so that 10 elements per line are printed

You have not called print method from main method. One more mistake is in your code that, you mentioned about 3 times of index variable and in your code you are taking cube of index variable. public class progprblm5{ public static void main(String []args){ double alpha[] = new double[50]; for(int i =0;i<25;i++){ alpha[i]= i*i; } … Read more

[Solved] How can i define a bool array in VC++ with more than MAXINT Elements

class largeBoolArray { private: bool **myMintherms; unsigned long long dim; unsigned int dimPointers; public: largeBoolArray() { myMintherms = NULL; dim = 0; dimPointers = 0; }; largeBoolArray(unsigned long long Dim) { assert(Dim > 0); dim = Dim; dimPointers = ((unsigned int) (Dim & 0xFFFFFFFF80000000) >> 31) + 1; myMintherms = new bool*[dimPointers]; for (unsigned int … Read more