Reply
Mon 22 Nov, 2010 12:27 pm
#include<stdio.h>
#include<stdlib.h>
int main()
{
char s1[100],s2[100];
printf("enter string\n");
scanf("%[^\n]s",s1);
printf("enter string\n");
scanf("%[^\n]",s2);
printf("%s %s",s1,s2);
}
@vitry,
Compare the first and second
scanf() and look for the difference.
@vitry,
Give me your requirement i'll guide you. I have no idea about c but expert in c++.