- 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; }
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."
+ 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.
+ 1
Ipang Thanx Bro!
0
Justice Thanx!