Menu

[solved] – Question 88756

How is pointer different from ordinary variable? What is the output of the following program segment ?

#include <in stream. h>
void main ( )
{

char *st=”Beautiful “
st++;
cout <<st <<endl;
st+=2
cout <<st <<endl;
}

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *