Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int* findVar(int tab[], int n, int x)
- {
- int *output = NULL;
- for(int i=0; i<n; i++)
- {
- if(tab[i]==x)
- {
- *output=tab[i];
- }
- }
- return output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement