人間夜行

一切の有為の法 夢幻泡影の如し

K&R C Bible Exercises 1-2

| 评论

Experiment to find out what happens when printf's argument string contains \c, where c is some character not listed above.

Example: I try to understand how \t works.

#include <stdio.h>
int main()
{
	printf("Hello, World!\n\a");
	printf("asdf56\tdfd\tsadfgg\nqe\tdfcvbnv\tdfafffffffsa\ndfdfaqerer\tdfa\tfdsab\n");
	return 0;
}
 

 

评论