22nd Sep 2018, 12:44 AM
Abhishek Shailendra Khandare
Abhishek Shailendra Khandare - avatar
3 Respostas
+ 1
thx
22nd Sep 2018, 10:10 AM
Abhishek Shailendra Khandare
Abhishek Shailendra Khandare - avatar
+ 1
so if I write ++*p-- then there should be print J insted of H may I write??
22nd Sep 2018, 12:09 PM
Abhishek Shailendra Khandare
Abhishek Shailendra Khandare - avatar
0
char str[]="Ibqqz!Cjsuiebz!WBJCIBWJ",*p; p=str; while(*p!='\0') // a cpp string always ends with a nul char // nul char is a char with the value of 0 --*p++; // * has precedence over -- and ++, then -- and ++ are processed from left to right // 1. *p is processed so it looks at the str[0] == 'I' // then *p is decremented to 'H' // then p (the pointer increments to the next address
22nd Sep 2018, 6:33 AM
Nestor