sami sam

sami sam

  • NA
  • 40
  • 29.3k

more clarification please in C programming

Aug 12 2012 7:55 PM
there is issue with my codes:

#include <stdio.h>
#include<string.h>
char s[80]
int i;
int main (){
strcpy(s, "hi there");
i=0;
while(s [i] !='&'){
i ++;
}
i ++;
while(s[i] !='&'){
i++;
}
printf(" i=%d\n",i);
}

Answers (4)