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
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
doubt in declaration
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
rampraveen
New Member
Join Date:
Apr 2010
Posts:
37
#1
doubt in declaration
Apr 8 '10, 02:55 AM
what is the use of below syntax.i got a program(convert numbers to words) which is having this syntax ...............
void pw(long,char[]);
akdemirc
New Member
Join Date:
Sep 2008
Posts:
26
#2
Apr 8 '10, 05:25 AM
it is the same with the below which declares a function taking a first parameter of type long and a second one of type array of char:
void pw(long, char*)
Comment
Post
Cancel
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#3
Apr 8 '10, 12:54 PM
Originally posted by
akdemirc
it is the same with the below which declares a function taking a first parameter of type long and a second one of type array of char:
Not quite the type of the second parameter is not array of char it is pointer to char.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment