Saturday, 15 September 2012

arrays - Pointer and String Outputs in C -


I am trying to understand why the following part of the code produces BCD123 123 <. / P>

  zero F (four * p) {* p + = 1; } Int main () {int i; Four A [] = "ABC" "123"; Char * p = a; For (i = 0; i  

  zero F (four * p) {* p + = 1 ; }  

1 adds a given character to 'A' + 1 = 'B' etc. See in the ASCI table

part 2

  char a [] = "ABC" "123"; // is similar to the same letter [] = "ABC 123"; For (i = 0; i  

No comments:

Post a Comment