MIPI_BaseC_WebinarFRTK/22_Seminar09/08_str_p28.c

12 lines
252 B
C
Raw Permalink Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
#include <stdint.h>
int main(int argc, char **argv)
{
char *ps[] = {"one", "two", "three", NULL}; // NULL признак конца
for(uint32_t i=0; ps[i] ; i++)//ps[i]!=NULL
printf("%s\n", ps[i]);
return 0;
}