xItsMatt839 xItsMatt839
  • 22-02-2024
  • Computers and Technology
contestada

What is the output of the following program?
int main(int argc, char*argv[]) {
int a[ 10 ], *p;
for(int i=0; i<10; i++) a[i] = i*10;
p = &a[2];
*(p+1) = 10;
p--; //p = &a[1]
p--; //p = & a[0] for(int i=0; i<10; i++)
printf("%d\n", *(p+i)); return 0;
}

Respuesta :

Otras preguntas

why did people immigrate to the United States in the late 1800s?
''Life in a city is more rewarding than life outside a city."List two or three arguments in favor of this opinion and two or three arguments opposing this opini
which of the following represents the most accurate estimation of 38+23
whats the most accurate estimation of 65+77
whats the most accurate estimation of 65+77
please explain how to solve this  On Monday,it took Helen 3 hours to do  a page of science homework exercises.The next day she did the same number of exercises
why did people immigrate to the United States in the late 1800s?
whats the most accurate estimation of 65+77
whats the most accurate estimation of 65+77
''Life in a city is more rewarding than life outside a city."List two or three arguments in favor of this opinion and two or three arguments opposing this opini