Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Define an int and int*.
- Initialize the int* to the address of the int. Initialize the int to 777 via the pointer (indirectly). Print the value of the int to the console via the pointer (indirectly).
- Sample Run:
- x is 777.
- */
- #include <stdio.h>
- int main()
- {
- int *intA;
- intA = 777;
- printf("Value of intA is %d.\n", intA);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement