Why such uncertain Increment in value?
I was writing this code on codeblocks(only compiler I m having).When I encountered such a behaviour. plz Somebody suggest why is this happening with ct, am I missing something.

    #include <stdio.h>
    int main(int argc,char* argv[])
    {
        int lov[3][2]={0};        
        int ct=0;
        char* art;
        if(argc!=4)
            return 1;
    
          printf("Printing with:- Argv1=%s Argv2=%s Argv3=%s Argv0=%s",argv[1],argv[2],argv[3],argv[0]) ;
    
       art=argv[1];
            do
            {
                if(*art=='L' & *(art+1)=='o' & *(art+2)=='c')
                {
                    printf("\n\n (art+3)=%s ,*(art+3)=%c ,*(art+5)=%c",(art+3),*(art+3),*(art+5) );
                    lov[ct][ct]=*(art+3)-48;
                    lov[ct][ct+1]=*(art+5)-48;
                    printf("\nct=%d,lov[x][x]=%d,lov[x][x+1]=%d ",ct,lov[ct][ct],lov[ct][ct+1]);
                    ct++;
                }
                art+=3;
            }
            while(*(art++));
    getchar();
    }

And on command prompt:-

    >Resol.exe Loc2,5 Loc3,8 Loc5,4
    Output:-
    Printing with:- Argv1=Loc2,5 Argv2=Loc3,8 Argv3=Loc5,4 Argv0=Resol.exe
    
     (art+3)=2,5 ,*(art+3)=2 ,*(art+5)=5
    ct=0,lov[x][x]=2,lov[x][x+1]=5
    
     (art+3)=3,8 ,*(art+3)=3 ,*(art+5)=8
    ct=1,lov[x][x]=3,lov[x][x+1]=8
    
     (art+3)=5,4 ,*(art+3)=5 ,*(art+5)=4
    ct=5,lov[x][x]=4198582,lov[x][x+1]=4


Why ct becomes 5????(last Line)
Why such uncertain Increment in value?
===

I was writing this code on codeblocks(only compiler I m having).When I encountered such a behaviour. plz Somebody suggest why is this happening with ct, am I missing something.

    #include <stdio.h>
    int main(int argc,char* argv[])
    {
        int lov[3][2]={0};        
        int ct=0;
        char* art;
        if(argc!=4)
            return 1;
    
          printf("Printing with:- Argv1=%s Argv2=%s Argv3=%s Argv0=%s",argv[1],argv[2],argv[3],argv[0]) ;
    
       art=argv[1];
            do
            {
                if(*art=='L' & *(art+1)=='o' & *(art+2)=='c')
                {
                    printf("\n\n (art+3)=%s ,*(art+3)=%c ,*(art+5)=%c",(art+3),*(art+3),*(art+5) );
                    lov[ct][ct]=*(art+3)-48;
                    lov[ct][ct+1]=*(art+5)-48;
                    printf("\nct=%d,lov[x][x]=%d,lov[x][x+1]=%d ",ct,lov[ct][ct],lov[ct][ct+1]);
                    ct++;
                }
                art+=3;
            }
            while(*(art++));
    getchar();
    }

And on command prompt:-

    >Resol.exe Loc2,5 Loc3,8 Loc5,4
    Output:-
    Printing with:- Argv1=Loc2,5 Argv2=Loc3,8 Argv3=Loc5,4 Argv0=Resol.exe
    
     (art+3)=2,5 ,*(art+3)=2 ,*(art+5)=5
    ct=0,lov[x][x]=2,lov[x][x+1]=5
    
     (art+3)=3,8 ,*(art+3)=3 ,*(art+5)=8
    ct=1,lov[x][x]=3,lov[x][x+1]=8
    
     (art+3)=5,4 ,*(art+3)=5 ,*(art+5)=4
    ct=5,lov[x][x]=4198582,lov[x][x+1]=4


Why ct becomes 5????(last Line)