Home » C Programming » Library Functions

What will be the output of the program? #include<stdio.h> int main() { int i; char c; for(i=1; i<=5; i++) { scanf("%c", &c); /* given input is 'a' */ printf("%c", c); ungetc(c, stdin); } return 0; }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!