hithesh123
Full Member level 6
- Joined
- Nov 21, 2009
- Messages
- 324
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,298
- Location
- lax
- Activity points
- 3,548
How to send enter or Carriage return using printf on serial port?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Try '\n' or '\r' (backslash followed by 'n' or 'r'). You can also try sending character 0x0D which should do the same thing.
Brian.
printf("Hello world\r\n");
I though that people would learn this with their very first C program
Code:printf("Hello world\r\n");
printf("Hello world");
Kernighan-Ritchie The C programming language has this "first C programm"Not really. My first C program was just printf("Hello world");
printf("hello, world\n");
According to the C standard, you would use an octal constant "\032" in the format string.how to send ctrl+z using printf?