// Online C compiler to run C program online #include <stdio.h> int main() { int arr[5]= {5,4,8,9,7,48,99}; int n = 7; int *p; for(int i = 0; i < 5; i++){ if(arr[i] == n){ p = &arr[i]; } } printf("%d",*p); return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter