<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>program-shoshinsya</author_name>
  <author_url>https://blog.hatena.ne.jp/program-shoshinsya/</author_url>
  <blog_title>auの日記</blog_title>
  <blog_url>https://program-shoshinsya.hatenablog.com/</blog_url>
  <categories>
    <anon>C言語</anon>
    <anon>関数ポインタ</anon>
    <anon>関数ポインタ配列</anon>
  </categories>
  <description>auです。 今回は関数ポインタを配列で呼び出す関数を変えてみたいと思います。 宣言方法 宣言方法は関数ポインタ名の後ろに配列をつけるだけです。 戻り値の型 (*関数ポインタ名[配列数])(引数の型1, 引数の型2...); これで宣言できます。 実際に使ってみる 今回は、配列の番号によって&quot;足し算、引き算、掛け算、割り算&quot;をするプログラムを書きました。 #include &lt;stdio.h&gt; int add(int a, int b) { return a + b; } int sub(int a, int b) { return a - b; } int mul(int a, int b) {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fprogram-shoshinsya.hatenablog.com%2Fentry%2F2018%2F07%2F01%2F202904&quot; title=&quot;C言語で関数ポインタの配列 - auの日記&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>2018-07-01 20:29:04</published>
  <title>C言語で関数ポインタの配列</title>
  <type>rich</type>
  <url>https://program-shoshinsya.hatenablog.com/entry/2018/07/01/202904</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
