we havent learned files
there is no End Of File in this program
can i change it into '\0'
or some like that?
Code:for (i = 0; i < 39 && (ch = getchar()) != '\n' && ch != EOF; ++i) { input2[i] = ch; } input2[i] = '\0';
we havent learned files
there is no End Of File in this program
can i change it into '\0'
or some like that?
Code:for (i = 0; i < 39 && (ch = getchar()) != '\n' && ch != EOF; ++i) { input2[i] = ch; } input2[i] = '\0';