Tuesday, 23 March 2010

Help Understanding getchar() and putchar() in C


hey guys i'm moving on quest in learning c. have come learning getchar , putchar. problem im having little trouble understanding how work within code itself. have
looked examples of how used , result produce haven't found helps. if explain , maybe provide helps understanding great.

 

if had more specific question easier help.

can use getchar this:
int = getchar();
make program pause until character has been input , return key pressed. ascii value of character stored in i;

getchar(c) outputs value of c, of type char.
char c = 'c';
putchar(c);
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment