Write a simple C/C++ program which defines an array of five elements, then using pointer to display the addresses of all elements of the array.
Write a simple C/C++ program which defines an array of five elements, then using pointer to display the addres
/* Tolga's C code */
#include %26lt;stdio.h%26gt;
int main(){
int i=0, arr[5];
for(;i%26lt;5;i++)
printf("Address of the element #%d is %p\n",i,(arr+i));
return 0;}
Reply:This looks like a command instead of a question. I don't even see a question mark anywhere! You wouldn't be asking people to do your homework now, would you? You're not that kind of person I'm sure.
violet
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment