Help needed here! = )

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fab108
    New Member
    • Jun 2007
    • 16

    Help needed here! = )

    SmsDeliverPdu data = (SmsDeliverPdu) pdu;

    may i know why the SmsDeliverPdu in bold must be bracketed?

    Thanks
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by Fab108
    SmsDeliverPdu data = (SmsDeliverPdu) pdu;

    may i know why the SmsDeliverPdu in bold must be bracketed?

    Thanks
    Thats the syntax rule.
    The object or pointer you are wishing to typecast should be specified in brackets

    Raghuram

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Those are parentheses. Brackets are [ ].

      Comment

      • gpraghuram
        Recognized Expert Top Contributor
        • Mar 2007
        • 1275

        #4
        Originally posted by weaknessforcats
        Those are parentheses. Brackets are [ ].

        Ok.
        I always mention ( as brackets and [ as array brackets.
        I will use your terminology from here on.

        Raghuram

        Comment

        Working...