0
I have made a program of prime number. I want to know did i initialized the class member c=0 correctly or not.
2 Respuestas
0
Since it is declared outside the function, it is fine.
0
Its perfect since c was initialized inside the function and befor the 'for' loop. Evry time when call display(), must renitialize to start count divisor from 1 by c increment.