Making an Array to Hold Arrays of Character Arrays in C

后端 未结 5 1523
暖寄归人
暖寄归人 2021-01-17 10:04

My C is a little more than rusty at the moment, so I\'m failing to create something I think should be pretty basic.

Allow me to refer to character arrays as strings

5条回答
  •  难免孤独
    2021-01-17 10:30

    This example was done with turbo c+ 1.01 dos and works in the 3.0 dos version also.

    char * text[] = {
      "message1",
      "message2",
      "message3"
    };
    

提交回复
热议问题