SHARE
TWEET

C ques 50

Dprogrammed1 Apr 5th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     void fun(int, int[]);
  6.     int arr[] = {1, 2, 3, 4};
  7.     int i;
  8.     fun(4, arr);
  9.     for(i=0; i<4; i++)
  10.         printf("%d,", arr[i]);
  11.     return 0;
  12. }
  13. void fun(int n, int arr[])
  14. {
  15.     int *p=0;
  16.     int i=0;
  17.     while(i++ < n)
  18.         p = &arr[i];
  19.     *p=0;
  20. }
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