#include <stdio.h>void main(){ int a,b,c; printf("enter nos.") scanf("%d%d",&a,&b); printf("number before swap%d%d0",a,b); c=a; a=b; b=c; printf("nos. after swap%d%d",a,b);}
Standard input is empty
prog.c:2:6: warning: return type of 'main' is not 'int' [-Wmain] void main() ^ prog.c: In function 'main': prog.c:6:2: error: expected ';' before 'scanf' scanf("%d%d",&a,&b); ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!