#include <stdio.h>#include <iostream>#include <stdlib.h>using namespace std;int main() {//如果是整形,如何改变指针指向的值int a[2] = { 111,222 };int* p = a;int* p2;p2 = p;*p = 22;//如果是字符串型,如何改变指针指向的值const char* aa = "I love China!";const char* bb = "u love China!";int cc = (int)(bb - aa);const char* pp = (aa + cc);while (*pp){putchar(*pp); //单字符输出pp++;}return 0;}
