#include <iostream> void f(int **a) ;void f(int *a[2]) ; int main(){ int* array[32] ; int* b[2] ; f(array) ; f(b);} void f(int**){ std::cout << "f(int**)\n" ;} void f(int*[2]){ std::cout << "f(int*[2])\n" ;}
Standard input is empty
prog.cpp: In function ‘void f(int**)’: prog.cpp:19:6: error: redefinition of ‘void f(int**)’ void f(int*[2]) ^ prog.cpp:14:6: error: ‘void f(int**)’ previously defined here void f(int**) ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!