Computer Science, asked by vasuerode49, 9 days ago

What is the output?
int main() {
int a[10][10] = {{1,2,}}{3,4},{5,6},{7,8},{9,10}};
int *p = a[3];
int result = a[2][1]+(*p--)+(++*p)+(*p+13);
printf("%d",result);
return 0;
}

Answers

Answered by harshchhawal233
8

Answer:

This is a load of rubbish that won’t even compile. I have copied this and added statements such as #include <stdio.h> in an attempt to make it compile.

As stated previously, there is a 10x10 array declared but initialized as a 5x2.. I really did not understand this.

This is the sort of question you would possibly see in a text-book to be solved as a pencil and paper exercise. If that is the intention, at least present a reasonable program that will at least compile and produce some output.

As you can see, I have tidied up the program to try and make sense.

Similar questions