[ create a new paste ] login | about

Link: http://codepad.org/3dGNyyeo    [ raw code | output | fork ]

C, pasted on Aug 20:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include<stdio.h> 

int function(void) 
{ 
    return 73; 
} 
   
int main() 
{ 
    static int i = function(); 
    printf(" value of i = %d", i);  
    return 0; 
} 


Output:
1
2
In function 'main':
Line 10: error: initializer element is not constant


Create a new paste based on this one


Comments: