I'm trying to write a code for sorting a link list. and I'm facing this error when I run the program and input data.Here's my code and the error "Unhandled exception: 0xC0000005: Access violation reading location 0x00000004" is for the bolded and underlined line:
#include<iostream>
using namespace std;
#include<conio.h>