Quantcast
Channel: perl – Securitron Linux blog.
Viewing all articles
Browse latest Browse all 7

Wrapping the printf() statement onto multiple lines in C and some other useful samples.

$
0
0
This code sample shows how we are wrapping a printf() statement onto multiple lines using backslashes. #include "stdio.h" #define hello "Hello World." int main(int argc, char* argv[]) { printf("This is a very long sentence we are handing down\n"\ "Mr smith, do you have anything to say for yourself"\ "?"); printf("%s\n", hello); return 0; } This [...]

Viewing all articles
Browse latest Browse all 7

Trending Articles