<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nandakagoodvibes</author_name>
  <author_url>https://blog.hatena.ne.jp/nandakagoodvibes/</author_url>
  <blog_title>なんだかGoodVibes</blog_title>
  <blog_url>https://nandakagoodvibes.hatenablog.com/</blog_url>
  <categories>
    <anon>C</anon>
  </categories>
  <description>こんにちは。 本日はC言語メモです。 タイトルにもあるように、 関数ポインタを試してみようと思います。 関数ポインタを試してみる 関数ポインタは、関数のアドレスをポインタ変数に入れておいて、 そのポインタ変数を関数みたいに扱うことができます。 関数ポインタの宣言は 「戻り値の型 (*変数名)(関数の引数)」 です。 以下サンプルコードです。 #include &lt;stdio.h&gt; int add(int a, int b) { printf(&quot;足し算\n&quot;); return a + b; } int main() { int (*p_func)(int, int); p_func = add; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnandakagoodvibes.hatenablog.com%2Fentry%2F2026%2F01%2F18%2F181113&quot; title=&quot;【C】関数ポインタを使ってみる - なんだかGoodVibes&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-01-18 18:11:13</published>
  <title>【C】関数ポインタを使ってみる</title>
  <type>rich</type>
  <url>https://nandakagoodvibes.hatenablog.com/entry/2026/01/18/181113</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
