Re: Bytes allocated by the code ??
- From: gazelle@xxxxxxxxxxxxxxxxxxxxx (Kenny McCormack)
- Date: Tue, 28 Nov 2006 19:15:48 +0000 (UTC)
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.
.
- References:
- Bytes allocated by the code ??
- From: onkar
- Re: Bytes allocated by the code ??
- From: Tom St Denis
- Bytes allocated by the code ??
- Prev by Date: Re: Macros
- Next by Date: Re: Reading a string of unknown size
- Previous by thread: Re: Bytes allocated by the code ??
- Next by thread: Re: Bytes allocated by the code ??
- Index(es):
Relevant Pages
|