Subj : query To : comp.programming From : deshpandeajit Date : Thu Sep 22 2005 03:46 am Hi, I have following piece of C-code below. Pls go thru and try to answer the questions I have below: void func(char **); main() { char *a[]={"god","father"};//ARRAY OF strings,i.e. func(a); } void func(char **ptr) { Now here in function "func" i want to access(printf), the 2 strings "god" and "father". How can I do so. e.g. printf("%s %s ",*ptr,*ptr +/- ); }//func ends 1.)My question is how can I access/printf the second string "father" by using variable ptr. How do I calculate the pointer offsets for this second string from the first one? 2.)Second question : Is there any way by which I can get sizeof the two strings in bytes, for the definition below - char *a[]={"god","father"}; wishes, AD. .