Question: #include int a=10,b=10; int sum(){ } consider the code below: int return a+b; main() { static int i = sum(); printf( value of i=

consider the code below: #include int a=10,b=10; int sum(){ return a+b; } int main(){ static int i = sum(); 

#include int a=10,b=10; int sum(){ } consider the code below: int return a+b; main() { static int i = sum(); printf(" value of i= %d", i); return 0; } Please explain what will be the output of this program, and support your answer by explaining the reason behind it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The code you provided is a C program that consists of two functions sum and main Lets walk through t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!