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:

  1. unable open include file 'stdio.h'

  2. function printf should have prototype.

  3. function scanf should have prototype.

make sure have installed c compiler properly. if on linux os comes pre-installed.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -