Wednesday 9 September 2009

Scanning a paragraph using scanf function in c


void main(){char a[30];clrscr();scanf("%[^\t]",a);printf("%s",a);getch();} Note: Paragraph will end when you will press tab key.

No comments:

Post a Comment