Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
pointer to complete array does not convert implicitly to pointer to array of unknown bound
//clang 3.8.0 #include <iostream> // type is int[5], bound is deduced from the initializer int a[] {10, 20, 30, 40, 50}; int main() { // no implicit conversion from int(*)[5] to int(*)[], uncomment this to fix //extern int a[]; int (*p)[] = &a; for (auto i = 0; i != 5; ++i) std::cout << (*p)[i] << '\n'; }
run
|
edit
|
history
|
help
0
SceneGraph Interviewee Task
Example of custom deleter to manage a resource.
pointer to pointer
6 7
Tree Traversal and Node
Arduino Bluetooth Periodiek Systeem
Recursive Function Calling Example with Stack Addresses
hw1 Os
range based for loop temporary object lifetime issue example
overloadresolution