<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tondol</author_name>
  <author_url>https://blog.hatena.ne.jp/tondol/</author_url>
  <blog_title>FLYING</blog_title>
  <blog_url>https://tondol.hatenablog.jp/</blog_url>
  <categories>
    <anon>c/c++</anon>
  </categories>
  <description>２次元配列を動的割り当てしたいそんなとき，C言語ならキモくなるかも。検索エンジンから来る人がそれなりに居るようなので，解説画像を追加しました（2014/12/05）。 各行のデータを保持する配列と各行へのポインタを保持する配列に分けて確保 おそらく最も基本的なやり方。 int **matrix; int i, j, n, m; n = 100, m = 100; matrix = malloc(sizeof(int *) * n); for (i=0;i&lt;n;i++) { matrix[i] = malloc(sizeof(int) * m); } for (i=0;i&lt;n;i++) { fo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftondol.hatenablog.jp%2Fentry%2F20090713%2F1247426321&quot; title=&quot;C言語で２次元配列を動的に割り当てる４つの方法 - FLYING&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/t/tondol/20141205/20141205155142.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-07-13 04:18:41</published>
  <title>C言語で２次元配列を動的に割り当てる４つの方法</title>
  <type>rich</type>
  <url>https://tondol.hatenablog.jp/entry/20090713/1247426321</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
