what is error code SIGTSTP means?here is the link for my code. link to my code but it works with sample case.i am not able to found wrong in my code.
You should first see that anything more than 20! cannot be stored in any data type of C++/C . You should either switch to JAVA/python for this Q, or learn how to store huge numbers in C/C++. And then, declare the array of size 101 instead of 100. Due to 0 based indexing, valid memory locations are [0,1,2…99] not [1,2,3…100]. So for n=100 your code can give error.
SIGSTP suspends your process , this signal could be expilcit or due to an invalid operation leading to no output like
unsigned int x = 0 ;
x – ; // invalid operation
or any other such operation