Вопрос по c, arrays – Массивы переменного размера в C

6

Error: User Rate Limit Exceeded

int main(void) {
  int r = 3;
  int k[r];
  return 0;
}

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Ваш Ответ

5   ответов
4

Error: User Rate Limit Exceeded

void foo(int n)
{
    int bar[n];
    .
    .
}

Error: User Rate Limit ExceedednError: User Rate Limit Exceeded

3

Error: User Rate Limit Exceeded

#include <malloc.h>

...

int *k = (int *)_alloca(sizeof(*k)*r);
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded adk
0

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

9

Error: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit Exceeded

13

Error: User Rate Limit Exceeded

Похожие вопросы