#include <stdio.h> void main() { int a,b,c; scanf("%d %d",&a,&b) c=a+b; printf("%c",c) } /* Main.c:2:6: warning: return type of 'main' is not 'int' [-Wmain] void main() ^ Main.c: In function 'main': Main.c:6:5: error: expected ';' before 'c' c=a+b; ^ Main.c:9:1: error: expected ';' before '}' token } ^ */ |
Double click to view unformatted code.