C program language:
[code=c]
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
int main()
{char a[100],b[100],*pa,*pb;
pa = &a; pb = &b;
scanf("%s",*pa) ;
scanf("%s",*pb) ;
printf("vnesi 2 niza / input 2 strings");
printf("\nstrin g: %s",*pa);
printf("string: %s",*pb);
system("pause") ;
return 0;
}
[/code]
well i dont know how to connect string and a pointer
pa = &a; pb = &b; i presume that problem is only here but i cant corect it.
[code=c]
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
int main()
{char a[100],b[100],*pa,*pb;
pa = &a; pb = &b;
scanf("%s",*pa) ;
scanf("%s",*pb) ;
printf("vnesi 2 niza / input 2 strings");
printf("\nstrin g: %s",*pa);
printf("string: %s",*pb);
system("pause") ;
return 0;
}
[/code]
well i dont know how to connect string and a pointer
pa = &a; pb = &b; i presume that problem is only here but i cant corect it.
Comment