printf

P

pete

Sensei wrote:
#include <stdio.h>

int main(void)
{
char *p;
int i;

for (i = 0; i <= 1024; i++)
p = 'A';

printf(p);
putchar('\n');

return 0;
}


For portability reasons, the last character
output to a text stream, should be a newline.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,167
Messages
2,570,911
Members
47,453
Latest member
MadelinePh

Latest Threads

Top