Diferences between array and pointer initialized strings in C

Moderator
Posts: 1,140
Joined: 2005.07
Post: #16
Did you place that in a function? If it's outside a function, you can't use functions to initialize variables.
Quote this message in a reply
Member
Posts: 469
Joined: 2002.10
Post: #17
I think akb825's got it. stick that in your main function. Compile. Should work.

---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Pascal language (pointer) problem sealfin 3 4,456 Nov 27, 2012 04:38 AM
Last Post: sealfin
  another c pointer question NelsonMandella 3 3,910 Mar 26, 2010 03:49 AM
Last Post: DoG
  efficient strings? fabien007 4 3,139 Dec 9, 2005 10:59 PM
Last Post: zKing
  Member function pointer LongJumper 6 4,931 Oct 31, 2005 05:53 PM
Last Post: LongJumper
  Cocoa Method to C Pointer KiroNeem 11 6,740 Sep 12, 2005 10:08 AM
Last Post: Zekaric