Lab 8 part 2 v.06
Warning(s): source_file.c: In function ‘main’:
source_file.c:43:20: warning: comparison between pointer and integer
if(C[i]==x){
^
source_file.c:44:20: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
C[i]=y;
^
source_file.c:36:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",x);
^
source_file.c:37:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",y);
^
1
2
1
1
2
3
4
5
That character isn't in the array
|
|