> I just need to start thinking of arrays are nonexistent there are only pointers with pre-allocated memory ot them
That would be a disaster waiting to happen
> I just need to start thinking of arrays are nonexistent there are only pointers with pre-allocated memory ot them
That would be a disaster waiting to happen
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Hey, why don't you use gets ?
#include <stdio.h>
#include <conio.h>
int main() {
char yourname[80];
printf("\nPlease enter your name : ");
gets(yourname);
printf("\nYour name is : %s",yourname);
return 0;
}
It'll certainly work with Turbo C++.
> Hey, why don't you use gets ?
Hey, why haven't you read the FAQ yet?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Oh ! I'm so sorry. I didn't think about it.