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

Difference between Public vs Internal vs Private state variables in solidity programming langauge with example ?

free source code for website

How to add Amazon website inside iframe?

How to use sandbox attribute value ( allow-scripts ) with < iframe > tag in HTML ? with example

What is a < code > tag?

What does P mean in HTML?

How to use sandbox attribute value ( allow-top-navigation) with < iframe > tag in HTML ? with example