2D character array initialization in C

Viewed 144977

I am trying to build a list of strings that I need to pass to a function expecting char **

How do I build this array? I want to pass in two options, each with less than 100 characters.

char **options[2][100];

options[0][0] = 'test1';
options[1][0] = 'test2';

This does not compile. What am I doing wrong exactly? How do I create a 2D character array in C?

4 Answers
Related