+ 1
how to accept combination of letters and numbers in both c and cpp? ex:-afh13gs02
8 Respuestas
+ 1
can u explain with an example program step by step?
+ 1
how to get input? i mean we shd type our own words
+ 1
gets(name);
+ 1
thx
0
use strcpy function
0
ex-strcpy(name,"ravi123");
0
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
void main()
{
char name[20];
strcpy(name,"ravi123");
puts(name);
getch();
}
0
OK?