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 use sandbox attribute value ( allow-popups ) with < iframe > tag in HTML ? with example

How do you add color to a < table > in HTML?

table background-color css

what is solidity programming language ?

How to add Amazon website inside iframe?

How to Create a table in html with 2 rows and 3 columns (Source code )

How to use referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

How to use loop attribute with < video > tag in HTML for YouTube ? with example

All 35 reserved keywords in Solidity programming language