Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- /*
- void troca(int *a1,int *b1){
- int x , y;
- x = *a1;
- y = *b1;
- *a1 = y;
- *b1 = x;
- }
- int main () {
- int a = 2 , b = 3;
- int *a1 , *b1;
- a1 = &a;
- b1 = &b;
- printf("O valor de a é %d : ",a);
- printf("O valor de b é %d : ",b);
- troca(*a1,*b1);
- printf("O novo valor de a é %d :",*a1);
- printf("O novo valor de b é %d :",*b1);
- return 0;
- }
- */
- InverteS(char *s) {
- int x;
- x = len(*s);
- printf("%d",x);
- }
- int main () {
- char st[100];
- char *s;
- printf("Entre com a palavra");
- gets(st);
- printf("%s",st);
- s = &st[0];
- InverteS(*s);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement