Console.WriteLine in C
#What is Console.WriteLine?
Console.WriteLine is a method in C# used to output specified information in the console window. It belongs to the System.Console namespace.
Function and purpose
Syntax
<code class="csharp">public static void WriteLine(object value); public static void WriteLine(); public static void WriteLine(string format, params object[] args);</code>
Usage examples
<code class="csharp">Console.WriteLine("Hello World!"); Console.WriteLine(123); Console.WriteLine(true);</code>
Output:
<code>Hello World! 123 True</code>
Additional Information
The above is the detailed content of What does console.WriteLine refer to in c language?. For more information, please follow other related articles on the PHP Chinese website!