網絡学習管理 C言語環境設定 C言語認定試験(2級出題範囲)

C言語認定試験(2級出題範囲)

参考(2級出題範囲)

出題内容
定数 浮動小数点定数 指数形式を許す
浮動小数点接尾語はf、l、F、Lのいずれか
整数定数 整数接尾語として長語接尾語(l、L)を含む
文字定数 拡張表記は8進拡張表記、16進拡張表記を含む
文字列リテラル 拡張表記は8進拡張表記、16進拡張表記を含む
列挙定数
演算子 ビット演算子、条件演算子、代入演算子、キャスト演算子、ポインタ/アドレス演算子、構造体演算子、sizeof演算子
宣言指定子 void、short、long、float、double、構造体共用体指定子(struct、union)、列挙型指定子(enum)、型修飾子(const)、typedef
変数 上記型指定子の単純変数、配列
外部定義
プリプロセッサ機能 ファイルの包含
ライブラリ関数
数学関数<math.h>
double cos(double x); double sin(double x);
double tan(double x); double exp(double x);
double log(double x); double log10(double x);
double pow(double x, double y);
double sqrt(double x); double ceil(double x);
double fabs(double x); double floor(double x);
入出力関数<stdio.h>
NULL、EOF、FILE、stderr、stdin、stdout、
FILE *fopen(const char *filename, const char *mode);
int fclose(FILE *stream);
int fscanf(FILE *stream, const char *format, …);
int fprintf(FILE *stream, const char *format, …);
int sscanf(const char *s, const char *stream, …);
int sprintf(char *s, const char *stream, …);
int fgetc(FILE *stream, …); int fputc(int c, FILE *stream);
char *fgets(char *s,int c, FILE *stream);
int fputs(const char *s, FILE *stream);
int getc(FILE *stream, …); int putc(int c, FILE *stream);
char *gets(char *s);int puts(const char *s);
int ungetc(int c, FILE *stream);
一般ユーティリティ関数<stdlib.h>
NULL  double atof(const char *nptr);
int atoi(const char *nptr);
long int atol(const char *nptr);
int rand(void);  void srand(unsigned int seed);
int abs(int i);  long int labs(long int j);
文字列操作関数<string.h>
NULL  size_t
char *strcpy(char *sl,const char *s2);
char *strncpy(char *sl,const char *s2, size_t n);
char *strcat(char *sl,const char *s2);
char *strncat(char *sl,const char *s2, size_t n);
int strcmp(const char *sl,const char *s2);
int strncmp(const char *sl,const char *s2, size_t n);
char *strchr(const char *s, int c);
char *strrchr(const char *s, int c);
char *strstr(const char *sl, const char *s2);
size_t strlen(const char *s);
その他
  • main関数の引数、整数型以外の関数
  • 自己参照構造体
  • 変数の記憶クラスと通用範囲(auto、static、register、extern)

※3級出題範囲含む

注)各級とも日本工業規格 (JIS) X3010 で出題・解答する。

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA


Related Post

[GCC]C Compiler on Windows[GCC]C Compiler on Windows

WindowsでgccをインストールするにはMinGWを利用した、C言語の最小限の開発環境を作る手順 エディタをインストール コンパイラをインストール コンパイラにPATHを通す設定をする エディタをインストール Atom、VSCodeなど新世代のエディター(Windows、Mac OS X、Linux対応)をインストールしてください。 コンパイラをインストール C言語コンパイラって幾つかありますが、visual studioはファイルサイズがデカいので却下です。gccのインストールをオススメします。gccはMacでもLinuxでもWindowsでも使えます。 コンパイラの違い一覧 システム mingw-jp Visual Studio .net Borland C++ Builder […]

[GCC]C Compiler on MacBook[GCC]C Compiler on MacBook

MacBookで、C言語開発環境の構築 Macに最初から入っている「テキストエディット」とMacに最初から入っている「ターミナル」から入門できますが、無料で多機能Atom、VSCodeを使えこなせるとより本格的にC言語開発できます。 Mac:C言語開発環境 Xcode またはXcode Command Line Toolsを入れる。 Xcode MacBookでは、Xcodeの開発環境を入れるは普通だか、サイズが大きい。iPhoneのアプリ開発環境も一気に揃う利点があります。 Xcode Command Line Tools Xcode Command Line Toolsだけ入れるとする。サイズの節約になります。 # xcode-select […]

[BCC32]Install Borland C++ Compiler 5.5[BCC32]Install Borland C++ Compiler 5.5

Borland C++ Compiler 5.5開発環境 Windows PCを持っている学生は開発環境をインストールする Borland C++ Compiler 5.5のインストール手順 https://www.embarcadero.com/jp/free-tools よりダウンロード 大まかな流れ 圧縮ファイル「freecommadlinetoos」の解凍 インストーラー「freecommandlinetools2」 の起動 使用許諾契約の同意 コンパイラのインストール先の指定 コンパイラのインストール開始 インストール終了 […]