以下に、問題を示す簡単なCプログラムがあります。ポインタを使用してreallocにコールしようとするとうまくいきますが、ポインタにオフセットを追加しようとすると(つまり、配列の後の要素から開始する)、失敗します。 # include <stdio.h>
# include <stdlib.h>
struct arbNum{
unsigned char* bytes;
lo
#include <stdio.h>
char strA[80] = "A string to be used for demonstration purposes";
char strB[80];
char *my_strcpy(char *destination, char *source)
{
char *p = destination;
while (*so
#include<stdio.h>
int main(){
int a1[]={6,7,8,18,34,67};
int a2[]={23,56,28,24};
int a3[]={-12,27,-31};
int *y[]={a1,a2,a3};
int **a= y;
printf("%d\n",a[0][2]);
pr