Помогите пожалуйста найти ошибку. Программа выдает ошибку (General Protection fault), если ввожу более 4 символов.
void main(){char *s;gets(s);Заранее Спасибо.
for(int i=0;s[i];i++){printf("%c",s[i]);}}
Правильно... Ты отводишь место под указатель на строку, sizeof которого = 4... Выдели буфер:
int main() { // Стандарт требует int
char s[50]; gets(s);
for(int i=0;s[i];i++){printf("%c",s[i]);}
return 0; // И это тоже - требование Стандарта
}
Оу... Спасибо... Не учел.
Amoxicillin Clavulanate 125 Tab Price
Cephalexin Dosing Instructions
Vip Transactions
Why not settling on games that is fun and at the same time your earning. Well itll make suspense because of the game as well but dude just try it and it gave me hope while pandemic is real rn. https://techsians.com/when-is-the-best-time-to-play/