arrays_and_pointers.c - #include <stdio.h> int main int x[5 ={1 2 3 4 5 int ptr ptr is assigned the address of the third element ptr =&x[2 printf*ptr

arrays_and_pointers.c - #include <stdio.h> int main int x[5...

This preview shows page 1 out of 1 page.

#include <stdio.h>int main(){int x[5] = {1, 2, 3, 4, 5};int* ptr;// ptr is assigned the address of the third elementptr = &x[2];
Background image

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '12
  • Barrett
  • int x

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture