Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
72% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~608 People Reached
Favorite Forums
Favorite Tags
c x 6
Member Avatar for dsraju

Hi all,I am having some doubts in C. 1>> My program needs to allocate memory of 256*256 array of integers ie array[256][256]. But it cannot be allocated statically.So pls suggest me how to allocate memory of 256*256 integers dynamically.My code below given is unable to allocate memory and is returning …

Member Avatar for Iqbal_h_a
0
288
Member Avatar for dsraju

Can any one say, In which case Null Pointer Assignment is displayed on the output screen in a C programming ?Hoping ur answers .............Urs Raju

Member Avatar for dsraju
0
68
Member Avatar for dsraju

Hi everbody,My below program is running successfully ,but at end it is displaying Null Pointer Assignment as output. Why ??? [code] #include #include int main(){ float far **ptr; /* For 2-D array dynamic allocation*/ register int i,j; ptr=(float far**)calloc(256,sizeof(ptr)); if(ptr==NULL) { printf("\n No Memory! "); return 0; } for(i=0;i[/code]

Member Avatar for ~s.o.s~
0
134
Member Avatar for dsraju

1)Can you suggest me how to assign a pre-defined 2-dimensional array to a pointer.The intension here is to pass 2-D array to a funtion so that changes in the function will reflect the 2-D array . [code]void main(){ int array[40][40]; fun(array); } void fun(int **array){ ........}[/code] The above code is …

Member Avatar for ~s.o.s~
1
118