Microsoft Visual C++ Unhandled exception in array_move1.exe: 0xC0000005: Access Violation
Microsoft Visual C++
Unhandled exception in array_move1.exe: 0xC0000005: Access Violation)
数组元素循环左移程序崩溃示例,请大神帮忙分析下原因:
源代码如下:
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<malloc.h> //也可以用头文件#include<alloc.h>
using namespace std;
void exchange(int *a, int *b)
{
int t = 0;
t = *a;
*a = *b;
*b = t;
}
int main()
{
char *p;
int *</