C Program : getchar() Example

 #include <stdio.h>

int main() { char ch; printf("Enter a line of text (press Enter when done):\n"); while ((ch = getchar()) != '\n') { putchar(ch); // Output the character } printf("\n"); return 0; }

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management