How would I copy the pairB onto pairA ? The program compiles,but does run .Code:# include <stdio.h> # include <String.h> int main(void){ int i=0; int j=0; char *pairA[3]; char pairB[10]; pairB[0]='D'; pairB[1]='o'; pairB[2]='g'; pairB[3]='\0'; strcpy(pairA[0],pairB); }
Any other better way to assign the word dog to to pair B ?
would be grateful if some-one can help me out.



LinkBack URL
About LinkBacks



