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

How many grams are needed to obtain 1.5 moles of mgco3?
Exit which country shares the southern border of the united states? a. canada b. mexico c. ontario d. greenland
Why were merchants angered by the tea act? how where they affected? why did they want to declare independence from great britainthanks:)
1. what is a typical accompaniment for la hamburguesa ? ( 1point) A. el desyuno b. las papas fritas c. el perrito caliente d. las pupusas
Ahmed,jack,ali has shared $1000 for the bank they share it with the ratio 8:7:5 calculate the money each one earned
How do you solve shaded areas
Why is 509 bce is an important daten in roman history?
What in life you would miss out on by choosing drugs?
When are semicolons correctly and effectively used? when joining clauses about separate ideas into one sentence when connecting related but independent clauses
What are the symbols in repunzel?