Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Lab 8 part 2 v.06

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.12 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0,35 sec 
edit mode |  history  | discussion
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