- Is this the only way to pick up a string? Can not you take character by character into an array?
- I get an error accessing memory. The code and the error are attached.
void main()
{
int counA = 0, countB = 0, Na, Nc, i, index;
printf("enter Na and Nc\n");
scanf_s("%d%d", &Na, &Nc);
char DNA[1000], SEQ[1000], str[1000];
printf("enter mulekula\n");
scanf_s("%s", str);
}
input:
2
3
AAA
message I get:
exception thrown...