Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <stdlib.h>
- #include <time.h>
- #include <string.h>
- /*char invtab(char arr[])
- {
- int i = strlen(arr);
- for(int j = 0 , j < i ; j--)
- {
- printf("%s\n",j--);
- }
- }*/
- char invpoint(char arr[])
- {
- char *q = arr;
- //while (*q) { printf ("%c\n", *q--) ;}
- for (int i = 0 ; i < strlen(arr) ; i++)
- {
- printf("%c ",*q);
- }
- }
- int main()
- {
- //char *p="ceci est une chaine" ;
- //char *q = p;
- //while (*q!=0) { printf ("%c", *q) ; q++ ;}
- //while (*q) { printf ("%c", *q++) ;}
- //printf ("%s\n",p);
- //printf ("%s\n",q);
- /*int x[5] = {1, 2, 4, 8, 16};
- int *p = &x[0];
- int *q = x;
- int *r =q;
- printf("%d %d %d %d %d %d\n",x[0],*p,x[1],*(p+1),x[2],*(p+2));*/
- /*char tableau[]="bonjour";
- tableau[0] = 'B';
- //printf("%s\n",tableau);
- char *p = &tableau[0];
- *p='B';
- printf("%s\n",p);*/
- char arr[]="maman";
- //invtab(arr);
- //printf("Avec tableau : %s\n",arr);
- invpoint(arr);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement