I have used arrays in the program; a[3] - now i want to change the program to dynamic array value
If I enter more than allocated(3) characters in the input - it throws error and the program stops running
error "Segmentation fault" (i am running c on unix)
- i dont want that to happen - it should be able to handle any number of characters entered without limit.
What should i use? i tired using
char *c1="hi" but I was not able to do it. I am a beginner level programmer.
Warm Regards
Kumar.