4
Answers

more clarification please in C programming

sami sam

sami sam

12y
1k
1
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)