Predict the output of the program
#include<stdio.h>
void sum() 
{
    int a=5, b=5, sum;
    printf("enter two numbers\n");
    sum=a+b;
    printf("sum=%d\n",sum);
}
void main() 
{
    sum();
    printf("hello\n");
    sum(); 
}

Posted on by