Search Results

Search: Posts Made By: nathanmca
Forum: Programming 02-09-2010
1,577
Posted By nathanmca
Why's this Output
Hi guys
I am executing the following program.

main ()
{
int a[10];

printf ("%d \n", &a[9] - &a[0] );

return 0;
}

I was expecting 40. But the output is 9.

Why's this?...
Forum: Programming 09-12-2006
4,467
Posted By nathanmca
try using rational purify to check the amount of...
try using rational purify to check the amount of memory leaked
Forum: Programming 06-08-2005
23,965
Posted By nathanmca
Hi Thanks for ur reply My doubt is when the...
Hi Thanks for ur reply

My doubt is when the control goes to the function 'count' will then the memory be allocated to the static variable i.

That means the memory is allocated at the runtime. ...
Forum: Programming 06-07-2005
23,965
Posted By nathanmca
Static variables memory allocation
Hi
I want to know when and where memory for static variables are allocated in a C program. If it allocates during compilation will memory be allocated for the variable "i" during compilation...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 04:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy