Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by 1718627440

3 days ago

Is there a difference between:

    T * ptr = alloca (size);

and

    char buffer[size];
    T * ptr = &buffer;

under the assumption that this happens at the top-level of a function?

1 comment

1718627440

Reply

CyberDildonics  3 days ago

Not that I know of

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities