Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char napis[20];
- int i,dl;
- printf("Podaj napis ");
- fgets(napis,20,stdin);
- dl=strlen(napis)-1;
- for (i=0;i<=dl;i++)
- printf("%c",napis[i]);
- //wskazniki iterowane
- for(i=0;i<=dl;i++)
- printf("%c",*(napis+i));
- //wskazniki zwykle
- char *wsk;
- wsk=&napis;
- i=0;
- while (i<=dl){
- printf("%c",*(wsk+i));
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement