Хотели ввод ->значения Вставить в массив в C
"Enter a word: program"
"Enter a postion to know where to start cutting: 2"
"Enter the following quantity to end up: 4"
Хотел Выход ->
ogra
Это мой код, но я не знаю, как вставить значения в другой массив
#include <stdio.h>
#include <string.h>
int main(){
char word[100], cutword[50];
int on, off, i, j;
printf("Entra a word: ");
gets(word);
printf("Enter a postion to know where to start cutting: ");
scanf("%d", &on);
printf("Enter the following quantity to end up: ");
scanf("%d", &off);
for (i = 0; i<strlen(word); i++){
if (i >= on && i <= off) ¿cutword[]? = word[i];
}
for (j = 0; j<strlen(cutword); j++){
printf("%c", cutword[j]);
}
}
Что такое, что ** ¿cutword []? ** – Artur