- Learn C By Examples Time
- Learn C by Examples - Home
- C Examples - Simple Programs
- C Examples - Loops/Iterations
- C Examples - Patterns
- C Examples - Arrays
- C Examples - Strings
- C Examples - Mathematics
- C Examples - Linked List
- C Programming Useful Resources
- Learn C By Examples - Quick Guide
- Learn C By Examples - Resources
- Learn C By Examples - Discussion
String Printing Program in C
Implementation
Now, we shall see the actual implementation of the program −
#include <stdio.h> int main() { char str[] = "Hello World"; printf("%s\n", str); return 0; }
Output
Output of this program should be −
Hello World
string_programs_in_c.htm
Advertisements