SyntaxFix
Write A Post
Hire A Developer
Questions
char buffer[41]; memset(buffer, '-', 40); // initialize all with the '-' character<br /><br /> buffer[40] = 0; // put a NULL at the end<br /> printf("%s\n", buffer); // show 40 dashes<br />