What will be the output of  the code in both c and c++
#include stdio.h 
int main(void)
{
const int j = 20;
int *ptr = &j;
printf("*ptr: %d\n", *ptr);
return 0;
}

Posted on by