Thank u guys.....cas is right...thanks again
Type: Posts; User: GOGO1104
Thank u guys.....cas is right...thanks again
Thanks but
char *m_module[MAX];
is array of char ptr memory must be allocated for each char *
This is the code
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 10
struct module
{
main()
{
double d;
printf("%d", (unsigned int)((double *)0+2));
}
How the output of this code is 16?
Thanks laser
I have used a+i in place of a++ it fine now.
But another doubt
main()
{
int main()
{
int *a,i;
a=(int *)malloc(10*sizeof(int));
for(i=0;i<10;i++)
*(a+i)=i*i;
for(i=0;i<10;i++)
printf("%d",*a++);
...