Agreed, subscript start at 0, but starting at 1 is not invalid.
Type: Posts; User: C.K.Babulal
Agreed, subscript start at 0, but starting at 1 is not invalid.
#include <stdio.h>
int main()
{
int i,j,row=1,col=3,sum=0;
int a[row][col];
printf("Enter the elements on by one:");
for(i=1;i<=row;i++)
{
for(j=1;j<=col;j++)