How to use comments in Solidity programming language ?

 How to use comments in Solidity programming language ? 


function getResult() public view returns(uint)

{

   // This is a comment. It is similar to comments in C++


   /*

      * This is a multi-line comment in solidity

      * It is very similar to comments in C Programming

   */

   uint a = 1;

   uint b = 2;

   uint result = a + b;

   return result;

}

Comments

Last 7 Days

How to make a water bottle using the HTML code?

What is < iframe > tag in HTML ?

How to use the datalist tag in HTML?

How to use < data > tag in HTML ? with example