Computer Science, asked by yaahsharma68, 1 month ago

write a program to print message in different line.​

Answers

Answered by sahshrijeet7
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 SugaryHeart
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