Search
 
SCRIPT & CODE EXAMPLE
 

C

getchar in c

#include <stdio.h>

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

   return(0);
}
Comment

getchar c

#include <stdio.h>
int getchar(void);
Comment

getchar declaration in c

int getchar(void)
/* returns either:
 * 1. In SUCCESS: The character read as an unsigned char casted to an int.
 * 2. In FAILURE: EOF on end of file or error. 
 */
Comment

PREVIOUS NEXT
Code Example
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
:: scopes in c 
C ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
Dart ::  
ADD CONTENT
Topic
Content
Source link
Name
8+2 =