Comparing two arrays using pointers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Comparing two arrays using pointers

Can anyone tell me how to compare two arrays using pointers in c language

21st Jan 2018, 1:34 PM
Vishal
1 Answer
0
First of all,You have to declare arrays like *pa = &a[0]; than if there's string array,so you have to go for ASCII summation OR if there's integer string,that's very simple to compare using if. For increment of array,use *(pa + I);. Thank You.
3rd Mar 2018, 8:03 AM
Karan Koya
Karan Koya - avatar