#5, First Floor, 4th Street , Dr. Subbarayan Nagar, Kodambakkam, Chennai-600 024 pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to use single line or multi line comment in ns2?
  • Single line comment

    # Node Creation
    set node1 [$ns node]
    where,
    # Node Creation → Single line comment

  • Multi line Comment

    if {0} {
    for {set i 0} {$i < $val(nn)} {incr i} {
    set node_($i) [$ns node]
    $node_($i) color black
    }
    }
    where,
    # set of lines given inside the if block is commented → Multi line comment