You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to c_extr...@googlegroups.com
i hav 1 doubt in c.p.
#include<stdio.h>
main()
{
int c=sizeof(int);
printf("size of int = %d\n",c);
int a[2][2]={1,2,3,4};
int i;
for(i=0;i<4;i++)
{
printf("%d\n",*(a+i));
}
}
and output is:::
size of int = 4
2434340
2434348
2434356
2434364
why difference of 8 is cmg wen size of int is 4?????
plz reply 2 it...!
Rohit Bhattacharya
unread,
May 6, 2012, 10:43:47 AM5/6/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to c_extr...@googlegroups.com
don't u need to declare a pointer value..u have taken a[][] as an int type..thn how r u givin it *(a+i), commnt on it...may be i don't know smething abt that but i think you need to define a separate pointer variable
Siddharth Mohan Misra
unread,
May 6, 2012, 10:49:32 AM5/6/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message