Final answer:
The correct code to read an integer from stdin and store it in the variable 'height' is 'scanf("%d", &height)', which is option b.
Step-by-step explanation:
To read a value from stdin (standard input) and store it in a variable of type int named height, the correct line of code would be: scanf("%d", &height). This line is represented by option b. The %d format specifier is used for int data types in C/C++. Importantly, the ampersand (&) is necessary before the variable name height to pass the address of variable to scanf, allowing it to store the input value in the correct memory location.