Visual Studio Code – No error compiling this code in visual studio
#include<iostream> int* function() { int a = 2; return &a; } int main() { int* b = function(); *b = 3; return 0; } I was trying to run this program, but this is supposed to give me an error…