0
#include <stdio.h>
#include <stdlib.h>
void main()
{
    char a[30],b[30],i;
    printf("enter the a: ");
    gets(a);

    for(i=0;a[i]!='\0';i++)
{
        b[i]=a[i];

}

    printf("%d",b);
}

it produces a wrong output

2
Contributors
1
Reply
3
Views
6 Years
Discussion Span
Last Post by zeroliken
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.