Sponsered Links
Categories
Sponsered Links

Arrays and pointers get array value through array pointer

 

This example shows Arrays and pointers: get array value through array pointer.

#include <stdio.h>

int main(void)
{
  char mul[] "jspservlettutorial.info";
  char *p = mul;
  int i;
  for(i = ; i<strlen(mul; i++)
    printf("\n mul[%d] = %c  *(p+%d) = %c  &mul[%d] = %p  p+%d = %p", i, mul[i], i, *(p+i), i, &mul[i], i, p+i);
  return 0;
}

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved