Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
Help needed here! = )
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Fab108
New Member
Join Date:
Jun 2007
Posts:
16
#1
Help needed here! = )
Feb 18 '08, 03:41 AM
SmsDeliverPdu data = (
SmsDeliverPdu)
pdu;
may i know why the SmsDeliverPdu in bold must be bracketed?
Thanks
gpraghuram
Recognized Expert
Top Contributor
Join Date:
Mar 2007
Posts:
1275
#2
Feb 18 '08, 03:57 AM
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
Post
Cancel
weaknessforcats
Recognized Expert
Expert
Join Date:
Mar 2007
Posts:
9214
#3
Feb 18 '08, 05:47 PM
Those are parentheses. Brackets are [ ].
Comment
Post
Cancel
gpraghuram
Recognized Expert
Top Contributor
Join Date:
Mar 2007
Posts:
1275
#4
Feb 19 '08, 01:27 AM
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
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment