PHP

11/19/2023

C, C++, JAVA, C# [003] Comments

 C


// This is a comment

printf("Hello World!");


printf("Hello World!"); // This is a comment


/* The code below will print the words Hello World!

to the screen, and it is amazing */

printf("Hello World!");


C++


// This is a comment

cout << "Hello World!";


cout << "Hello World!"; // This is a comment


/* The code below will print the words Hello World!

to the screen, and it is amazing */

cout << "Hello World!";


JAVA

// This is a comment

System.out.println("Hello World");


System.out.println("Hello World"); // This is a comment


C#

// This is a comment

Console.WriteLine("Hello World!");


Console.WriteLine("Hello World!");  // This is a comment




No comments:

Post a Comment

Featured Post

Coating chocolate using methods like panning

 Coating chocolate using methods like panning involves careful temperature control throughout the processing period to achieve the desired r...

Popular Posts