Page 1 of 1

Question 5: Find the error in each of the following program segments and correct the error. #define SIZE 100; int a[ 2 ]

Posted: Mon Jun 06, 2022 5:14 pm
by answerhappygod
Question 5 Find The Error In Each Of The Following Program Segments And Correct The Error Define Size 100 Int A 2 1
Question 5 Find The Error In Each Of The Following Program Segments And Correct The Error Define Size 100 Int A 2 1 (202.52 KiB) Viewed 31 times
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.