Question 5: Find the error in each of the following program segments and correct the error. #define SIZE 100; int a[ 2 ]
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 5: Find the error in each of the following program segments and correct the error. #define SIZE 100; int a[ 2 ]
Question 5: Find the error in each of the following program segments and correct the error. #define SIZE 100; int a[ 2 ][ 2 ] = {1, 21, (3, 4 ] }; a[ 1, 1 ] = 5; int sum( int x, int y ) { int result; result = x + y; } char name [30]; scanf("%29s", &name [30]); 5. int x[]=(1,0,0), y[]-(0,1,0); printf ("2x+3y = %d",2*x +3*y); 3.