osascript, 33 bytes
(read "a")'s paragraphs's item 1
Executing on a file called a with osascript a.
Gets the first paragraph (line) of the file and prints it to STDOUT with a trailing newline, therefore the newline in the code.
Yes but it's bad practice to immediately accept, unaccept, accept, and unaccept answers ad nauseum. It's best to wait for a while. Some people don't participate in challenges if there's already an accepted answer because it in some ways signifies that the challenge is "over."
Suppose I write a code-golf question. How long should I wait before accepting the shortest answer? One week? Two days? More? I checked the FAQ, but couldn't find any information on this topic. Is there a general rule or is it just when the question asker feels like it?
Printf format string (of which "printf" stands for "print formatted") refers to a control parameter used by a class of functions in the string-processing libraries of various programming languages. The format string is written in a simple template language, and specifies a method for rendering an arbitrary number of varied data type parameters into a string. This string is then by default printed on the standard output stream, but variants exist that perform other tasks with the result, such as returning it as the value of the function. Characters in the format string are usually copied literally...
i don't program in c basically ever but i'm doing a test where i'm allowed to bring in a cheat sheet so i'm writing down weird c things i might have to know
What is the Sandbox?
This "Sandbox" is a place where Programming Puzzles & Code Golf (PPCG) users can get feedback on prospective challenges they wish to post to the main page. This is useful because writing a clear and fully specified challenge on the first try can be difficult. There is a much...
What is the Sandbox?
This "Sandbox" is a place where Programming Puzzles & Code Golf (PPCG) users can get feedback on prospective challenges they wish to post to the main page. This is useful because writing a clear and fully specified challenge on the first try can be difficult. There is a much...