thanks guys. fgets and a simple format specifier for scanf works too as I did some research..
scanf("%[^\n]]s",str2)
Type: Posts; User: ticktoc09
thanks guys. fgets and a simple format specifier for scanf works too as I did some research..
scanf("%[^\n]]s",str2)
Im a noob in C and I got this simple code working..
#include <stdio.h>
#include <conio.h>
#include <string.h>
int main ()
{
char str1[20]="burke",str2[20];