online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <type_traits> int main() { std::cout << std::boolalpha; int x = 10; std::cout << std::is_same_v<decltype(x), int> << '\n'; std::cout << std::is_same_v<decltype(++x), int&> << '\n'; std::cout << std::is_same_v<decltype(x++), int> << '\n'; std::cout << std::is_same_v<decltype( (x) ), int&> << '\n'; // important std::cout << std::is_same_v<decltype(x + 4 ), int> << '\n'; const int cx = 5; std::cout << std::is_same_v<decltype(cx), const int> << '\n'; const int* ptr = &x; std::cout << std::is_same_v<decltype(ptr), const int*> << '\n'; const int* const cptr = &x; std::cout << std::is_same_v<decltype(cptr), const int* const> << '\n'; int arr[5]; std::cout << std::is_same_v<decltype(arr), int[5]> << '\n'; std::cout << std::is_same_v<decltype(arr), int[6]> << '\n'; // FALSE int* p = &x; std::cout << std::is_same_v<decltype(p), int*> << '\n'; std::cout << std::is_same_v<decltype(*p), int&> << '\n'; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue