CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #8
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Noob Q 2D array processing

    Quote Originally Posted by naildirt View Post
    Code:
    ...
    int main()
    {
    	int count = 0 ;
    	char d[2][20] = { "hi" , "di" } ;
    	...
    }
    What type of data is this char d[2][20] supposed to contain?
    Do you know that "c string" must be NULL-terminated?
    Last edited by VictorN; November 21st, 2012 at 04:36 AM.
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured