Search:

Type: Posts; User: C.K.Babulal

Search: Search took 0.00 seconds.

  1. Agreed, subscript start at 0, but starting at 1...

    Agreed, subscript start at 0, but starting at 1 is not invalid.
  2. What is wrong with the code? How the element values of array changes?

    #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++)
Results 1 to 2 of 2