I declared a pointer but did not initialise it. But because of this, I get a segfault in a cin statement which has got nothing to do with the pointer. Here is the code:I declared a pointer but did not initialise it.
I declared a pointer but did not initialise it. But because of this, I get a segfault in a cin statement which has got nothing to do with the pointer. Here is the code:I declared a pointer but did not initialise it.