+ 2
the escape sequence "\n" is equivalent to ";" ? because I found a match between " \ " and ", " .
Language C.
31 Réponses
+ 9
"\n" moves the cursor to the next line
; used to indicate end of statement
+ 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 ;
+ 4
ok it is interpreter
written in C doesn't mean works like C compiler
+ 4
any one have a summary?
+ 3
No
+ 2
"\n" is basically used for new line.
";" semicolon is used to terminate a statement.
Both of them are completely different.
0
Yeah yeah but my question is addressed at compiler level, not at user level ...
0
because from hexadecimal " \ " it is translated into " , "...for this reason a doubt has arisen ...
0
yes tomorrow i can share it..now i don't have it on hand, i wouldn't make mistakes of forgetfulness ...
0
I know " \n " that it is inside " " while " ; " it isn't ... so the question might be legitimate ...
0
sure maybe I was unclear, but it's because I have been studying this code recently
0
it's probably a low-level translation ... but I'm curious if there is a logical connection ...
0
Sure friend, sure...
0
mine is a question, not a problem ...
0
I seek answers, friend. my questions are not a problem for me ...only curiosity..
0
you are free to answer or not to respond, friend. the choice is only yours...
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.
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.
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 ...
0
In hexadecimal
char str[15] = " \x01\x00\x02\x03\x0a " ;
In not hexadecimal
char str[15] = { 1, 0, 2, 3, 10 }