- 1

Plz explain me, When we run the Code (Mentioned Below), We get Output as soft. Why?

#include<stdio.h> int main() { printf("s""o""f""t""\n"); return 0; }

17th May 2022, 3:35 PM
Rudra
Rudra - avatar
4 Answers
+ 2
Quoted from https://en.cppreference.com/w/c/language/string_literal "... at translation phase 6 (after macro expansion), the adjacent string literals (that is, string literals separated by whitespace only) are concatenated."
18th May 2022, 2:28 AM
Ipang
+ 3
Because that is what you typed for the program to do. Note that "\n" is a character set that means New Line, so it will not be seen visual in the output.
17th May 2022, 3:44 PM
Justice
Justice - avatar
+ 1
Ipang Thanx Bro!
26th May 2022, 7:42 PM
Rudra
Rudra - avatar
0
Justice Thanx!
26th May 2022, 7:43 PM
Rudra
Rudra - avatar