Posts by Civic • 103 points
2 posts
-
6
votes7
answers65838
viewsA: How to run a C program in Visual Studio Code
Boy suffered too much to run C in Visual Studio (Windows), I found out in trial and error and added a script to facilitate use. I did so: Tighten CTRL+SHIFT+X in Visual Studio to Open the Extensions…
-
4
votes1
answer2537
viewsQ: What is the difference between pointer to vector and pointer to variable?
int A; int* pA = 1; int Vect[2] = {1,2}; int* pVect; pA = &A; *pA = 2; pVect = Vect; pVect[0] = 10; In the case I have a pointer to a variable and then to an array, and I want to change its…