write a program to print message in different line.
Answers
Answered by
2
How to print multiple line messages using single printf in C...
Example: This is line 1. ...
Consider the program: #include <stdio.h> int main() { printf("This is line 1."); ...
"\n" is a new line character, which can be used anywhere within the message written in printf() statement. ...
Thanks for reading...
@Vaishnavi Sah ❤:)
Answered by
0
Explanation:
#include<stdio.h>
#include<string.h>
int main()
{
char name[100];
int i=0;
strncpy(name, "Welcome To Magical World", 100);
printf("Actual String: %s\n", name
Similar questions
History,
25 days ago
English,
25 days ago
Social Sciences,
1 month ago
Math,
1 month ago
Math,
9 months ago
Social Sciences,
9 months ago
Science,
9 months ago