Thread: pass multidimentional array to a function

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2019
    Posts
    808

    pass multidimentional array to a function

    i need to pass a multi dimensional array to a function.

    if it was one dimensional i could do int *variablename

    everything i have found online says the function prototype should be like this

    myfunc( int [][26] ) and called with myfunc( name );

    This does not work i get the good old warning warning: passing argument 1 of ‘PrintGuesses’ from incompatible pointer type [-Wincompatible-pointer-types]|
    Last edited by cooper1200; 06-06-2023 at 12:58 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 10-20-2019, 02:00 PM
  2. Replies: 2
    Last Post: 01-10-2016, 01:23 AM
  3. Multidimentional array
    By Ducky in forum C++ Programming
    Replies: 6
    Last Post: 11-01-2009, 01:29 PM
  4. Replies: 1
    Last Post: 10-21-2007, 07:44 AM
  5. Replies: 3
    Last Post: 04-02-2002, 01:39 PM

Tags for this Thread