What this is program is showing error can any one help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What this is program is showing error can any one help me

https://sololearn.com/compiler-playground/cIG3wF98Ap26/?ref=app

26th Dec 2023, 4:25 PM
Viraj Yadav
Viraj Yadav - avatar
6 Answers
+ 3
https://sololearn.com/compiler-playground/c2t1d61690QP/?ref=app
26th Dec 2023, 5:01 PM
卂ㄚㄩ丂卄
卂ㄚㄩ丂卄 - avatar
+ 6
#include <stdio.h> int main() { int i,j,a[3][3]={{10,11,12}, {20,21,22}, {30,31,32}}; for(i=0;i<=2;i++) { printf("the address of array=%p ",*(a+i)); for(j=0;j<=2;j++) { printf("the value of array=%d\n",*(*(a+i)+j)); } } return 0; }
26th Dec 2023, 5:03 PM
JaScript
JaScript - avatar
+ 2
Viraj Yadav , Your code would be easier to read if you indented better. Notice how 卂ㄚㄩ丂卄 improved it. Here's a good reference. https://www2.cs.arizona.edu/~mccann/indent_c.html
28th Dec 2023, 12:53 PM
Rain
Rain - avatar
+ 1
Viraj Yadav , Please add a C tag.
27th Dec 2023, 4:22 AM
Rain
Rain - avatar
+ 1
#include <stdio.h> int main() { int i,j,a[3][3]={{10,11,12}, {20,21,22}, {30,31,32}}; for(i=0;i<=2;i++) { printf("the address of array=%p ",*(a+i)); for(j=0;j<=2;j++) { printf("the value of array=%d\n",*(*(a+i)+j)); } } return 0; }
27th Dec 2023, 3:23 PM
Bedaya dairy project 3
Bedaya dairy project 3 - avatar
+ 1
Oh thanks
2nd Jan 2024, 12:37 PM
Misky F