Way to check the output for the very large inputs on my computer

Do anyone know the way to check the outputs for the inputs of the order 10^9 …Provided I have the input file of 10^9 numbers.Because when I try using command prompt or by file input from the program itself there is a stack overflow in my computer

use this

freopen("inputfilename","r",stdin);
freopen("outputfilename","w",stdout);

Not working still stack overflow

share the code please.

1 Like