Posts by Manuel • 21 points
1 post
-
2
votes1
answer76
viewsQ: Why is the result of this mini program 2?
Why the result of this mini program is 2? #include <stdio.h> #include <stdlib.h> int main() { int *P = (int *)malloc(10*sizeof(int)); for(int i = 0; i < 10; i++) { P[i] = i*10; } int…