Scanf doubt

Revision en2, by gXa, 2015-07-01 20:11:47

Can anybody plz ezplain:

for(int i = 1; i <= n; i++) { scanf("%s", a[i] + 1); }

I know this one

for(int i = 1; i <= n; i++) { scanf("%s", a[i] ); }

But I don't know the use of above scanf("%s", a[i] + 1); Plz guide me on this.

Tags input reading

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English gXa 2015-07-01 20:11:47 162 Tiny change: ' of above one.' -> ' of above scanf("%s", a[i] + 1); Plz guide me on this.'
en1 English gXa 2015-07-01 20:09:56 98 Initial revision (published)