Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

getchar in c

#include <stdio.h>

int main () {
   char c;
 
   printf("Enter character: ");
   c = getchar();
 
   printf("Character entered: ");
   putchar(c);

   return(0);
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #getchar
ADD COMMENT
Topic
Name
1+5 =