voltage divider?

look at these 2 images (look at the LDR part):

  1. http://imageshack.us/a/img809/5138/99917903.png
  2. http://imageshack.us/a/img72/6295/11723497.png

I know that the first circuit is a voltage divider, but what about the second one? is a voltage divider too? what is the difference between them? (suppose that the resistor is 100ohms and tghe LDR of 10K) what will be the Vout of each resistor/LDR in each image??

Thanks.

The first one is a voltage divider.

The second one has the analog input pins wired directly to +5V so they will always read 1023. To get the divided voltage you have to connect the analog input to the point BETWEEN the two resistors.

ok, then.. what is the purpose of connecting the LDR and the analog pins if you will get 1023 ever?? (the pictures was taken from a book and reads the data in the analog pin in both cases)

I suspect the blue wires were meant to go on the other side of the red/green/blue blocks.

ghost_pattern:
ok, then.. what is the purpose of connecting the LDR and the analog pins if you will get 1023 ever?? (the pictures was taken from a book and reads the data in the analog pin in both cases)

I think this is what we call a 'mistake'. Lots of people make them. Part of the learning process is learning to recognize mistakes.