daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Dec 19th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. int main()
  4. {
  5. int a, b, c;
  6. int* array[] = {&a, &b, &c};
  7. cout<<"Enter elements: ";
  8. for(int i = 0; i < n; i++)
  9. {  
  10.     cin>>array[];      
  11.     if(array[] == 0)
  12.         array[] == 0);
  13. }
  14. cout<<"Result: ";  
  15. for(int i = 0; i < n; i++)
  16.     cout<<array[]<<" ";
  17. cout<<endl;
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top