生半可な ど素人の パソコン資格 :)

趣味で、資格学修を しています。 自分に 出来ることを 増やしていきたいです ^^

2018年01月



世界 最高峰の


プログラマー IT技術者


目指す

 😃

 

安全・健康 第一 : ) 


2018年、おめでとうございます ^^

#include <stdio.h>

#include <string.h>


/* 16進数の 暗号 ^^ */



int main()

{


printf("%c", 0x48);

printf("%c", 0x41);

printf("%c", 0x50);

printf("%c", 0x50);

printf("%c", 0x59);


printf("%c", 0x20);


printf("%c", 0x4e);

printf("%c", 0x45);

printf("%c", 0x57);


printf("%c", 0x20);


printf("%c", 0x59);

printf("%c", 0x45);

printf("%c", 0x41);

printf("%c\n", 0x52);


}



 


こんにちは、

fuku です。


本年も どうぞよろしくお願いします。^^



今日は、

気づいた事 書きます。


h29 FE 秋試験

9 c 言語。



str = text;

と、仮定しました。

 ( text[] を、str, chars が、参照している・指している ) 


 追伸 :

ポインタ、

配列 参照。


char* ith;

ith = &text[0];

char* str, chars;

 str = ith +1;  … &text[1];

&str[1] = ith +1;  … &text[1];

&chars[1] = ith +1;  … &text[1];

text[i] と、text[i+1] ( str[i+1], chars[i+1] )
を、比べている 




 何故なら、「 文字列 」は、

問題文中、1 しか 無かったからです。


技術者の 皆さんは、

周知のことなのかも

知れませんが、


僕は 全く知りませんでした。


この 仮定が 成り立てば、

問いに 答え易くなるので、

合っているのではと 思いました。


詳細は、解説書が 出てから、

見てみます。


取り急ぎ、

ご連絡まで。



いつもありがとうございます


^^


間違いが ありましたら、

ご連絡 お願いします。


↑このページのトップヘ