Re: Bytes allocated by the code ??



In article <1164740746.669358.257030@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Tom St Denis <tomstdenis@xxxxxxxxx> wrote:

onkar wrote:
how many bytes will be allocted by following code -

#include<stdio.h>
#define MAXROW 3
#define MAXCOL 4
int main(int argc,char **argv){
int (*p)[MAXCOL];
p=(int (*)[MAXCOL])malloc(sizeof(*p)*MAXROW);

Don't cast malloc (5th time today someone posted that...)

also

etc, etc...

(On the futility of getting information in clc)
Q: How many miles is it to Denver?
A: You need to paint your car.
.



Relevant Pages