I got these errors while compiling this c program -
#include<stdio.h> main() { int num1,num2,sum; printf("enter 2 integers added"); scanf("%d %d", &num1, &num2); sum = num1+num2; printf("addition of %d , %d = %d", num1, num2, sum); }
the errors are:
unable open include file 'stdio.h'
function printf should have prototype.
function scanf should have prototype.
make sure have installed c compiler properly. if on linux os comes pre-installed.
Comments
Post a Comment