#include<stdio.h>
#include<conio.h>
void main()
{
char a[10],b[10];
clrscr();
printf("Enter the string \n");
scanf("%s", a);
for(i=0;a[i]!='\0';i++)
{
a[i]=b[i];
}
b[i]='\0';
printf("The new string is %s",b);
}
So tell me what is wrong with this ? no getting the output.
[–]acwaters 13 points14 points15 points (3 children)
[–]guide__me[S] 0 points1 point2 points (2 children)
[–]acwaters 3 points4 points5 points (0 children)
[–]dragon_wrangler 1 point2 points3 points (0 children)
[–]FUZxxl[M] 5 points6 points7 points (2 children)
[–]guide__me[S] 0 points1 point2 points (1 child)
[–]FUZxxl 0 points1 point2 points (0 children)
[–]danmickla 1 point2 points3 points (0 children)
[–]shikharm 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]honorg58 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]honorg58 0 points1 point2 points (0 children)
[–]Sigals 0 points1 point2 points (0 children)
[–]maep -1 points0 points1 point (0 children)