Pointers Types
Pointers Types
int main()
{
ptr_arr();
return 0;
}
Accessing Array Elements using Pointer Arithmetic
// C Program to access array elements using pointers
#include <stdio.h>
int main()
{
// defining array
int arr[5] = { 1, 2, 3, 4, 5 };
return 0;
}
• // C program to illustrate Pointer Arithmetic
• #include <stdio.h>
• int main(){
• // Declare an array
• int v[3] = { 10, 100, 200 };