int main() { char * cstr = "Blebleble"; // łańcuch char *& cstrref = str; // referencja do łańcucha //... char ch = 'z'; // znak char &* chptrref = & ch; // referencja do adresu znaku return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:3: warning: deprecated conversion from string constant to ‘char*’ prog.cpp:4: error: ‘str’ was not declared in this scope prog.cpp:7: error: cannot declare pointer to ‘char&’ prog.cpp:3: warning: unused variable ‘cstr’ prog.cpp:4: warning: unused variable ‘cstrref’ prog.cpp:7: warning: unused variable ‘chptrref’
Standard output is empty