codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include<stdio.h> int main() { int arr[5] = { 1, 2, 3, 4, 5 }; int *ptr = arr; printf("The address of first element is %d\n and that of second is %d\n and values at first location is %u\n and value at second location is ,%u\n", ptr,(ptr+1), *ptr,*(ptr+1)); return 0; }
Private
[
?
]
Run code
Submit