May be its your compiler or there some problem else where in your code because
i have tried it using Borland C++ and it is running i used the simple prog
below and it returned 30
#include<stdio.h>
main()
{
int a=10, b=20;
static int x= a+b;
printf("The value of x is %d",x);
return 0;
}
praveen kumar <[EMAIL PROTECTED]> wrote: hai
friends
i have a common doubt
plz clarify it
AS
BELOW.
int a=10, b=20;
static int x= a+b;
when the above code is compiled it is giving an error.
thanks in advance
PRAVEEN
---------------------------------
Heres a new way to find what you're looking for - Yahoo! Answers
[Non-text portions of this message have been removed]
---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on,
when.
[Non-text portions of this message have been removed]