Re: [algogeeks]

2011-09-25 Thread Rohit Upadhyaya
thanks every1 for their explanations especially vishwaas and anup
ghatage

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks]

2011-09-22 Thread Rohit Upadhyaya
int main()
{
int a=256;
char *p=a;
*++p=2;
printf(%d,a);
return(0);
}

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: Interview Questions

2011-09-15 Thread Rohit Upadhyaya
Try This 1-:

#includestdio.h
#includestdlib.h
int main()
{
 int w=10;
 int *p=w;
 int *x;
x=(int *)malloc(sizeof(int)*1);
 *x=1000;
 int *y;
y=(int *)malloc(sizeof(int));
 *y=100;
 printf(%d %d %d,*x,*p,*y);
 return 0;
}

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] what is the output????

2011-09-14 Thread Rohit Upadhyaya
can any1 explain me the fork() function???

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] C output

2011-09-14 Thread Rohit Upadhyaya
for a 32 bit it is 4 ,3 and for 16 bit it is 2,3 and 64 bit it is 8,3..
also strlen(d) gives 3 bcz the coding of fn strlen() is such that as it
encounters null it will terminate..so irrespective of machine it prints 3 as
null at 4th place

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.