Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #define N 30
- void wypisz(char *tab, int liczwyr)
- {
- int i;
- for(i=0; i<=liczwyr;i++)
- {
- if(*tab != NULL)
- {
- printf("%d - %c\n",i,*tab);
- *tab++;
- *tab++;
- }
- else
- {
- printf("\n");
- while(*tab == NULL)
- *tab++;
- }
- }
- }
- int main()
- {
- char tab[][N] = {"hellows", "world", "abcde", "12345"};
- char *p = tab;
- wypisz(p, N);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment