the escape sequence "\n" is equivalent to ";" ? because I found a match between " \ " and ", " . | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

the escape sequence "\n" is equivalent to ";" ? because I found a match between " \ " and ", " .

Language C.

11th Sep 2019, 2:28 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
31 Answers
+ 9
"\n" moves the cursor to the next line ; used to indicate end of statement
11th Sep 2019, 6:23 PM
D_Stark
D_Stark - avatar
+ 5
they are not equivalent but they maybe do the same work at compile time by different compilers python compiler assumes new line and ; as the end of statement so you are maybe right about that but C language doesn't because you can't end the statement by new line you have to put ;
11th Sep 2019, 11:01 PM
ABADA S
ABADA S - avatar
+ 4
ok it is interpreter written in C doesn't mean works like C compiler
12th Sep 2019, 5:39 AM
ABADA S
ABADA S - avatar
+ 4
any one have a summary?
12th Sep 2019, 4:35 PM
ABADA S
ABADA S - avatar
+ 3
No
11th Sep 2019, 2:33 PM
KfirWe
KfirWe - avatar
+ 2
"\n" is basically used for new line. ";" semicolon is used to terminate a statement. Both of them are completely different.
12th Sep 2019, 11:06 AM
Indrayudh Mandal
Indrayudh Mandal - avatar
0
Yeah yeah but my question is addressed at compiler level, not at user level ...
11th Sep 2019, 7:44 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
because from hexadecimal " \ " it is translated into " , "...for this reason a doubt has arisen ...
11th Sep 2019, 7:47 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
yes tomorrow i can share it..now i don't have it on hand, i wouldn't make mistakes of forgetfulness ...
11th Sep 2019, 7:50 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
I know " \n " that it is inside " " while " ; " it isn't ... so the question might be legitimate ...
11th Sep 2019, 7:56 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
sure maybe I was unclear, but it's because I have been studying this code recently
11th Sep 2019, 7:58 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
it's probably a low-level translation ... but I'm curious if there is a logical connection ...
11th Sep 2019, 8:03 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
Sure friend, sure...
11th Sep 2019, 8:07 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
mine is a question, not a problem ...
11th Sep 2019, 8:11 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
I seek answers, friend. my questions are not a problem for me ...only curiosity..
11th Sep 2019, 8:15 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
you are free to answer or not to respond, friend. the choice is only yours...
11th Sep 2019, 8:17 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
this is not a table, man. it's a conversation. and questions are included in conversations. so I expect answers, but I don't expect solutions, since I can't find them in a conversation but only in the facts. I hope I was clear.
11th Sep 2019, 9:07 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
therefore, if someone is aware of what I expressed in my question and wants to share it by giving me a clear answer, then I can be satisfied as my doubt ceases to exist.
11th Sep 2019, 9:36 PM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
equivalents in the abstract sense. the python compiler is written in C. and is not a compiler but an interpreter if we want to be precise ...
12th Sep 2019, 5:27 AM
Ruggero Quaglia
Ruggero Quaglia - avatar
0
In hexadecimal char str[15] = " \x01\x00\x02\x03\x0a " ; In not hexadecimal char str[15] = { 1, 0, 2, 3, 10 }
12th Sep 2019, 5:46 AM
Ruggero Quaglia
Ruggero Quaglia - avatar