View Code of Problem 1

#include<stdio.h>
int main(){
int a,b,c;
  scabf("%d %d",&a,&b);
  c=a+b;
  printf("%d",&c);
  return 0;
}
/*
Main.c: In function 'main':
Main.c:4:3: warning: implicit declaration of function 'scabf' [-Wimplicit-function-declaration]
   scabf("%d %d",&a,&b);
   ^
Main.c:6:3: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
   printf("%d",&c);
   ^
/tmp/cc2suqTi.o: In function `main':
Main.c:(.text+0x1e): undefined reference to `scabf'
collect2: error: ld returned 1 exit status
*/

Double click to view unformatted code.


Back to problem 1