doubt in declaration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rampraveen
    New Member
    • Apr 2010
    • 37

    doubt in declaration

    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
    • Sep 2008
    • 26

    #2
    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

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      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

      Working...