void main(){
char arr[100]
scanf("%s",arr); // or gets(arr); to include spaces
for(int i=0; arr[i] != ' '; ++i)
{
printf("%c
",arr[i]);
}
}
int c = getchar(); //to read only one char
if (c != EOF)
printf("%c
", c);
Code Example |
---|
C :: typedef pointer |
C :: c program strtok use |
C :: c read csv |
C :: Graphics in C Draw A Line |
C :: c# for loop decrement |
C :: go optional parameters |
C :: c language time() function |
C :: add char to char array c |
C :: c int |
C :: copy string in c |
C :: initialize array c |
C :: how to get input in 2d array in c |
C :: epoch time in c |
C :: char to int in c |
C :: identifier bool is undefined in c |
C :: malloc contiguous 2d array |
C :: unable to locate package dos2unix |
C :: highest common factor algorithm in c |
C :: qtableview get selected row |
C :: passing file as argument in c |
C :: Float and Double Input/Output |
C :: why do you jerk while falling aslee |
C :: c list |
C :: get boolean from localstorage |
C :: majuscule en c |
C :: what is console in sublime text |
C :: localStorage.setItem multpile arra |
C :: c get int inpot |
C :: amazon kinesis disaster recovery |
C :: phpunit assert continue |