0

What wrong with my code? It is work all right though it show error !!!!!!

int main() { char a[20]; //type anything you thinking about now ? gets(a); printf ("you are thinking now about this đŸ”» \n"); puts(a); }

9th Dec 2020, 2:37 PM
RD:programmer
RD:programmer - avatar
1 Answer
0
- you need to add " return 0 ;" at the end, since you are using "int main(){}" - you are using gets(), it's dangerous because of buffer overflow. the compiler is warning you.
9th Dec 2020, 3:07 PM
Bahha┣
Bahha┣ - avatar