Posts

Showing posts from March 3, 2019

CBS This Morning

Image
CBS This Morning Genre News program Presented by Gayle King Norah O'Donnell John Dickerson Bianna Golodryga (See full list) Theme music composer Paul Evans and Red Nienkirchen (1989–90) [1] Carly Simon and Peter Fish (1996–99) Joel Beckerman (2012–) Country of origin United States Original language(s) English No. of seasons 12 (1987–99) 6 (2012–) No. of episodes 3,110 (1987–99) 1,667 (2012–) (as of May 20, 2018) Production Executive producer(s) Ryan Kadro Production location(s) Studio 57 CBS Broadcast Center New York City, New York Camera setup Multi-camera Running time 120 minutes (including commercials) Production company(s) CBS News Productions Release Original network CBS Picture format 480i (SDTV; 1987–99) 1080i (HDTV; 2012–) (downconverted to letterboxed 480i for SDTV sets) Original release Original Series: November 30, 1987  ( 1987-11-30 )  – October 29, 1999

Behaviour of getchar() in a while loop

Image
2 I am running this c program in the terminal #include <stdio.h> int main() { int result = 0; while(result <= 0) { int result = (getchar() != EOF); result = 2; printf("x"); } printf("outn"); } After that I type in the word "hello" followed by a return. The result is that I get multiple 'x' characters. Why doesn't this terminate after the first 'x'? c getchar share | improve this question edited Nov 9 '18 at 16:13 chux 83.6k 8 72 152