Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 8 years ago

Language

Compiler

Options

Author

anonymous

about 8 years ago

$
prog.cc: In function 'void Bar(char*)':
prog.cc:10:62: warning: 'sizeof' on array function parameter 'iStr' will return size of 'char*' [-Wsizeof-array-argument]
     std::cout << "Bar  : " << iStr << " size=" << sizeof(iStr) << "\n";
                                                              ^
prog.cc:8:21: note: declared here
 void Bar(char iStr[6])
                     ^
main : 12345 size=6
Foo  : 12345 size=8
Bar  : 12345 size=8
Exit Code:
0