2 Second question help

I am very new to micro controller programming, the C language. I've been reading everything I can, but I cannot find a direct answer to a very simple question.

If you program a delay inside a specific function that is within the void loop function will it delay all processing in the entire loop function, or just the specific function that it is contained in?

for example: a simple temperature reading

void loop()
{
{
tempC = analogRead(tempPin); //read the value from the sensor
tempC = (5.0 * tempC * 100.0)/1024.0; //convert the analog data to temperature
Serial.print((byte)tempC); //send the data to the computer
delay(1000); //wait one second before sending new data
}
{analogWrite(LED, 200) //pwm an led
}
}

will the delay within the temperature function affect the LED?

Unless you're working with interrupts, only one thing happens at a time. First, the first statement. Then, the next statement. Then the following statement. Etc. If you call a function, the statements inside that function get executed. Only after all of the function has completed, will the next statement after calling that function be performed.

Adding extra/redundant curly braces does not change the order things are executed. In this case, you delay() for 1000 milliseconds, and then at the end of the 1000 milliseconds, perform an analogWrite() call.

ok thank you very much