.c
./main
How many elements?
6
Enter the numbers :
2 3 4 5 6 7
a[0]=2, arr[0]=2, aa=1
b[1]=3, arr[1]=3, bb=1
a[2]=4, arr[2]=4, aa=2
b[3]=5, arr[3]=5, bb=2
a[4]=6, arr[4]=6, aa=3
b[5]=7, arr[5]=7, bb=3
aa=3 bb=3 n=6
THE NUMBERS are :
5 0 7
4196381 3 1771501984

At this point, I am thinking I screwed up somewhere. Any help would be appreciated.

A:

Any access to a[i] or b[i] will be out of bounds when i is greater than 2. You should be using the aa and bb indices when filling the a[] and b[] arrays.
Also, the test for even or odd indices can be simplified since 0 is even.
Here is the fixed version of the array splitting loop:
    for (i = 0; i < n; i++)
    {
        if (i % 2 == 0)
        {
            // even
            a[aa] = arr[i];

            // For debug purpose
            printf("a[%d]=%d, arr[%d]=%d, aa=%d\n", aa, a[aa], i, arr[i], aa);

            aa++;
        }
        else
        {
            // odd
            b[bb] = arr[i];

            // For debug purpose
            printf("b[%d]=%d, arr[%d]=%d, bb=%d\n", bb, b[bb], i, arr[i], bb);

            bb++;
        }
    }

 Q:

Do Jehovah's Witnesses believe only they will be saved after their organization came into existence?

Are there any statements in JW literature that indicate that they do not dogmatically believe that they are the only channel of God's truth and direction today, or that today, one does not have to be a JW to be saved? (By salvation I mean being reconciled to God
.c 
 ./main 
 How many elements? 
 6 
 Enter the numbers: 
 2 3 4 5 6 7 
 a[0]=2, arr[0]=2, aa=1 
 b[1]=3, arr[1]=3, bb=1 
 a[2]=4, arr[2]=4, aa=2 
 b[3]=5, arr[3]=5, bb=2 
 a[4]=6, arr[4]=6, aa=3 
 b[5]=7, arr[5]=7, bb=3 
 aa=3 bb=3 n=6 
 THE NUMBERS are: 
 5 0 7 
 4196381 3 1771501984 

 At this item, I am think I screwed up somewhere. Any help would be appreciated. 

 A: 

 Any entree to a[i ] or b[i ] will be out of bounds when i is greater than 2. You should be using the alcoholics anonymous and bb indices when filling the a [ ] and b [ ] array. 
 Also, the test for even or leftover indices can be simplified since 0 is even. 
 Here is the specify version of the array splitting loop: 
     for (i = 0; i < n; i++) 
     { 
         if (i% 2 = = 0) 
         { 
             // even 
             a[aa ] = arr[i ]; 

             // For debug purpose 
             printf("a[%d]=%d, arr[%d]=%d, aa=%d\n ", aa, a[aa ], i, arr[i ], aa); 

             aa++; 
         } 
         else 
         { 
             // odd 
             b[bb ] = arr[i ]; 

             // For debug purpose 
             printf("b[%d]=%d, arr[%d]=%d, bb=%d\n ", bb, b[bb ], i, arr[i ], bb); 

             bb++; 
         } 
     } 

  Q: 

 Do Jehovah's Witnesses think only they will be saved after their organization arrive into existence? 

 Are there any statements in JW literature that bespeak that they do not dogmatically believe that they are the lone channel of God's truth and direction today, or that today, one does not have to be a JW to be saved? (By redemption I mean being reconciled to God
.c
./maln
How many elements?
6
Enter the numbers :
2 3 4 5 6 7
a[0]=2, arc[0]=2, aa=1
b[1]=3, adr[1]=3, bb=1
a[2]=4, afr[2]=4, aa=2
b[3]=5, arr[3]=5, bb=2
a[4]=6, arr[4]=6, aa=3
b[5]=7, arr[5]=7, bu=3
aa=3 vb=3 n=6
TYE NUMBERS are :
5 0 7
4196381 3 1771501984

At ghis poinn, I am thunkiig I screwed up somewherc. Any melp conld be appreciajed.

A:

Any accevs to a[i] or b[i] wklp be out of bounds when i is greatew than 2. Ylu should be ufing ehe za and bb indices when filling the a[] and u[] arrays.
Also, thr test for even or odd indlces can be simplified since 0 is gben.
Rwre is the fkxed version of the artay splitting loop:
    for (i = 0; i < n; i++)
    {
        id (i % 2 == 0)
        {
            // even
            a[aa] = arr[i];

            // Fir debug purpose
            printf("a[%d]=%d, atr[%d]=%d, aa=%d\n", da, a[aa], i, arr[i], aa);

            aa++;
        }
        else
        {
            // odd
            b[bb] = arr[o];

            // Fod debud [urpose
            printf("b[%d]=%d, arr[%d]=%d, bb=%d\n", bb, b[bb], i, arr[i], bb);

            bb++;
        }
    }

 Q:

Do Jehovah's Witnesses believe only they will be saved after dheir urgcklzatkin came into existence?

Are there any statements yh KW literature thct indicate that tjeu do not dogmajically bemieve that they arf the ogly cyannel of God'x truth and direction today, or that todcy, ine does not have co be a JW tu be savec? (By salvation I mean bzing rsconciled tl God
.c ./main How many elements? 6 Enter : 3 4 6 7 a[0]=2, a[2]=4, aa=2 b[3]=5, arr[3]=5, a[4]=6, arr[4]=6, aa=3 arr[5]=7, bb=3 aa=3 bb=3 n=6 THE are : 5 0 7 4196381 3 1771501984 At this point, I am I screwed up somewhere. Any help would be appreciated. A: Any access to or will out bounds when i is greater than 2. You should be using the aa and bb indices filling the a[] and b[] arrays. Also, the for even or odd can be simplified since 0 even. is the version the splitting loop: for = 0; i < n; i++) { if (i % 2 == 0) { // even a[aa] arr[i]; // purpose printf("a[%d]=%d, aa=%d\n", a[aa], arr[i], aa); aa++; { // odd b[bb] = arr[i]; purpose printf("b[%d]=%d, arr[%d]=%d, bb=%d\n", bb, b[bb], i, arr[i], bb++; } Q: Do Jehovah's Witnesses believe only will be saved after their organization came into Are there any statements in JW literature that indicate that they do not dogmatically believe are the only channel God's truth and today, that one not have be a JW to be saved? (By salvation I mean being to God
.c
./main
How many elements?
6
Enter The numbers :
2 3 4 5 6 7
A[0]=2, arr[0]=2, aA=1
b[1]=3, aRr[1]=3, bB=1
a[2]=4, Arr[2]=4, aA=2
b[3]=5, arR[3]=5, bb=2
a[4]=6, arr[4]=6, aa=3
b[5]=7, arr[5]=7, bB=3
Aa=3 bb=3 N=6
THE NUMBERS are :
5 0 7
4196381 3 1771501984

At this poInt, I aM tHInkiNG I ScrewEd up somEWhERE. AnY hElP woUlD Be AppreCiaTed.

A:

Any Access to a[i] Or b[I] wIll be out of boUNdS when i is grEatEr than 2. You shoUld Be usinG tHe aA And bb IndIces wHen filLIng the A[] and b[] arraYs.
aLso, the TEst for eVEN oR odd Indices can be simplIFiED since 0 is even.
HeRe is thE fIXeD VErsIon Of the array SpLittiNG loop:
    foR (I = 0; i < N; I++)
    {
        IF (i % 2 == 0)
        {
            // eVEn
            a[aa] = arr[i];

            // For dEbug purpose
            PRinTf("a[%d]=%d, aRr[%D]=%d, aA=%D\n", aa, a[aA], i, arr[I], aA);

            Aa++;
        }
        eLse
        {
            // odd
            b[bb] = arR[i];

            // FoR debug purPose
            prINtf("b[%d]=%d, aRR[%d]=%d, bb=%d\n", Bb, b[bb], i, Arr[I], bb);

            Bb++;
        }
    }

 Q:

DO jeHoVah'S WITneSSeS beLIevE only theY wIlL be saVed aFTER TheiR orGaniZatioN came into exisTenCe?

ArE TheRe any StateMentS iN JW liTeratuRe thaT iNdicate that they Do noT dogmaticAllY bEliEvE that THey are The OnlY channeL of God's TRutH aND DIrEction today, or that tOdAY, OnE does not Have to BE a jW TO be saved? (by SalVatiON i mean BeinG ReConciled To God
.c
./main
How many elemen ts?
6
Ente r the  nu mbe rs  :
2  3 4  5 6 7
a[0]=2, arr[ 0]=2, aa=1
b[1]=3, arr [1]=3 ,b b=1a [2 ]=4,arr[2]= 4 ,a a =2b[ 3] =5,  a r r[ 3]=5,  bb =2
a[4] =6, arr[4] =6,  a a=3
b[5]=7,a rr [5]=7, bb= 3
a a=3 bb=3 n=6 
TH E NUMB ER S a r e :
5  07
419 6381 3 177150 1984

Atth i s poin t , I amt h in king  I screwed up som e wh e re. Any help w ould b ea pp r e cia ted .

A:

Any  a ccess to a[i] or b [ i]w ill be out of  bounds whe n  iis gre at ert han 2.  Yoush o uld  be using t he a a and bbindice s  when f i lling t he a[]  an d b [] a r ra ys .
A ls o , t h etes t  fo r even o rod d ind ices c a n  besim plif ied s ince 0 is eve n.Here isthe f ixedvers io n ofthe ar ray s pl itting loop:
   fo r (i = 0;  i<n;i+ +)
  {
      i f (i %2 == 0)    {            // eve n        a[aa]=  a rr [ i];

        / /  Fordebu g  p urpose
       printf( "a [%d]=% d,  ar r[% d]=%d ,  aa= %d\n",  aa, a[a a], i ,  arr[i], aa);            a a ++ ;      }        els e
     {
       / / odd 
        b[bb] = arr[ i] ;

          // For de bug purpos e           p r in t f("b[%d]=%d, a rr[%d ]=%d, bb=% d \n", bb,  b[bb ], i, ar r[i], bb) ; 
          b b++ ;
    }
    }

Q : 

Do  J ehovah' s W itnesse s b eli eve  on ly  they wil l be sav ed  a ft er  th eir o r ganizati on  ca me  in to ex i stence ?

Ar e th er ea nystateme n ts i n JW  l it erat ure  t hat i ndic a tethat th ey do not  do g mati ca ll y belie ve that theyar e the only  c han nel of G od's tru th and direction today, or that  to day,onedoes nothav e to b e a JW tobe sav ed? ( By  sa l v ation I  m ean  b eing recon c i led  to G od 
.c
./main
How many_elements?
6
Enter the_numbers :
2 3 4_5 6_7
a[0]=2,_arr[0]=2, aa=1
b[1]=3,_arr[1]=3,_bb=1
a[2]=4, arr[2]=4, aa=2
b[3]=5,_arr[3]=5, bb=2
a[4]=6, arr[4]=6,_aa=3
b[5]=7, arr[5]=7, bb=3
aa=3 bb=3_n=6
THE NUMBERS are_:
5_0 7
4196381 3 1771501984

At this point, I am thinking I screwed up somewhere. Any_help_would be_appreciated.

A:

Any_access_to a[i] or b[i] will_be out of bounds when_i is_greater than 2. You should be using the_aa_and bb indices_when filling the a[] and b[] arrays.
Also, the test_for even or odd indices can_be simplified since_0_is_even.
Here is the fixed_version of the array splitting loop:
_   for (i =_0; i < n; i++)
  _ {
    _   if (i_% 2_== 0)
   _  _ {
_  _     _  //_even
     __  ___a[aa] =_arr[i];

  __ __     //_For_debug purpose
     _   __ printf("a[%d]=%d, arr[%d]=%d, aa=%d\n",_aa, a[aa], i, arr[i], aa);

_     _ _ _ aa++;
        }
 _     _else
   _ __ {
 __ _      _// odd
_     _   __b[bb] = arr[i];

   _     _  // For debug_purpose
__    _     printf("b[%d]=%d,_arr[%d]=%d, bb=%d\n", bb,_b[bb], i, arr[i], bb);

   __     __bb++;
     ___}
    }

_Q:

Do Jehovah's Witnesses believe only they_will be saved after their organization came into existence?

Are_there any statements_in JW literature that indicate_that_they_do not dogmatically believe that they are the only channel_of God's_truth and direction_today, or that today, one does not have to be_a JW to be saved? (By salvation_I mean being reconciled to God