I was initializing array (unsigned short int) of size 100000000 in C 4.3.2 , and other two int array of size 1000000. But while submiting on Online judge, it was giving SIGSEGV error .
Therefor i decided to initialize my array dynamically with a default value 0, as adding value by loop takes much time.
My question is how to initialise array dynamically with a default value ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…