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

Smart contract code for Anyone can send coins to each other without a need for registering with a username and password with help of Ethereum keypair

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

How Artificial Intelligence Is Changing the World: A Complete Pro Guide

How Text Conversion Tools Work and Why They Are Useful

Why Convert PDF to Text and How It Helps in Editing & Research

How Text to Binary Converter – Convert Text into Binary Code work Online

How to Convert PNG to PDF Online (Free & Easy Method) | ThinkforU