Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char buffer[512];
- memset(buffer, 0, sizeof(buffer));
- sprintf(&buffer[0],"This Is The Longest String In the World that in text goes on and..");
- printf("Buffer:%srn",buffer);
- sprintf(&buffer[0],"This Is The
- Longest String In the World
- that in text goes on and..");
- Buffer:This Is The Longest String In the World that in text goes on and..
- sprintf(buffer, "This Is The "
- "Longest String In the World "
- "that in text goes on and..");
- sprintf(buffer, "This Is The
- Longest String In the World
- that in text goes on and..");
- char buffer[512];
- sprintf(&buffer[0], "This is the longest string"
- "in the world that in text"
- "goes on and on and on and on ....");
- printf("%sn", buffer);
- char buffer[512];
- snprintf(buffer, sizeof buffer, "%s",
- "This is The Longest String "
- "In the World that in text "
- "goes on and on and on and on ....");
- printf("Buffer:%srn", buffer);
Add Comment
Please, Sign In to add comment