New to VC++
-
Can Any one please tell me how can I compile and see the result(on the screen) of the following program using VisualStudio? include main() { int i=3; int*j; j = &i; printf("The value of i=%d",*j); }
-
Can Any one please tell me how can I compile and see the result(on the screen) of the following program using VisualStudio? include main() { int i=3; int*j; j = &i; printf("The value of i=%d",*j); }
Though I personally use streams (cout) for my programs at school, and I am not familiar with the printf() function, If you are using VC++.Net, I think you actually have to put a
system("pause");
at the end of your program or it will not remain open long enough for you to see anything... other than that, you'll have to wait for someone else to answer. I hope it helps! sincerely, Brett Peirce - PolerBear To err is human; To forgive: divine. -
Can Any one please tell me how can I compile and see the result(on the screen) of the following program using VisualStudio? include main() { int i=3; int*j; j = &i; printf("The value of i=%d",*j); }