ShareCopy to ClipboardRawPreviewcout << "\nUnique elements present in the array are: "; for (i = 0; i < n; i++){ if (temp[i] == 1){ cout << array[i] << ", "; } } return 0; } rtTS00Yatharth Garg0 CommentsAdd CommentLog in to add a comment