Questions tagged [lf]

Line Feed is a special character (unicode U+000A).

Line Feed is a special character (unicode U+000A), (ASCII: '\n', 0x0A, 10 in decimal). Line feed (LF) and carriage return (CR) are closely associated to represent end of line (EOL).

79 questions
-1
votes
1 answer

LF in Kotlin language specification standard for what?

Recently I am learning Kotlin. When I read Kotlin language specification, I meet some problems. I do not understand LF in Kotlin language specification standard for what? In section "1.2.1 Whitespace and comments", LF show as below. "LF:
wei ye
  • 73
  • 1
  • 7
-1
votes
3 answers

Javascript. Reduce an array by adding only odd numbers. Javascript returns NaN when I use %2 on a number with if

I am trying to sum all odd numbers of an array. The following method does not work and returns NaN. Could someone explain me why? I found a workaround so I do not need an alternative code. It would be great if you could explain me why (a supposed…
-1
votes
6 answers

scanf reads every double wrong

I have the following code: int main(void) { double r; scanf("lf",&r); printf("%lf\n",r); } Any value I enter returns a nonsense-number with about 40-50 digits. scanf works fine with chars, integers, strings etc., but with doubles I…
Scheater
  • 11
  • 2
-2
votes
2 answers

Removing the LF in codeblocks

How do i remove the LF at the end of each line in code blocks? Thanks in advance.
markos
  • 69
  • 1
  • 9
1 2 3 4 5
6