Relative Content

Tag Archive for c++cpointersg++clang

why does clang++ behave different than g++

#include <iostream> int main(int argc, char** argv){ char a = ‘a’; char* aptr = &a; std::cout << aptr << ” : ” << a << std::endl; return 0; } when I compile the code using g++, it gives me the output: a : a but when I compile using g++, it gives me the output: […]