help a newbee
hi iam new at programming and i am not sure what this statement means. i have read the book but iam still not sure will anyone let me know what this means please. i know what the loop means but iam not sure aobut the rest
for(i=0; i<5; i++)
printf("%d %d\n", k,j);
The for loop will call the statement below it 5 times with i being equal to 0, 1, 2, 3, and 4. The array k will have each of those indexes set to the value of 3+i.
After the for loop is done, the variable j will be set to *(k+2) which is the same as saying k. Finally it prints out k and j.
You really need to read a good programming book.
Also read this
C Board - Announcements in Forum : C Programming
Use sensible titles. It freaks out people with these titles :-)